A Pen by Beibit Sakhanov on CodePen.
Created
May 30, 2019 02:07
-
-
Save bsakhanov/fac5c420b17e782170abd7eee47dbba2 to your computer and use it in GitHub Desktop.
Animation fast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="uk-container"> | |
<h2 id="animation-delay">Animation fast</h2> | |
<div class="uk-child-width-1-4@m" uk-grid uk-scrollspy="cls: uk-animation-fade animation-fast; target: .uk-card; delay: 300; repeat: true"> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
</div> | |
<h2>Animation slow</h2> | |
<div class="uk-child-width-1-4@m" uk-grid uk-scrollspy="cls: uk-animation-fade animation-slow; target: .uk-card; delay: 300; repeat: true"> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
<div> | |
<div class="uk-card uk-card-default uk-card-body"> | |
<p>The animation of this element is delayed by some milliseconds.</p> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If i use jquery i have to link the file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.1.4/js/uikit.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.1.4/js/uikit-icons.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.uk-animation-fade.animation-fast { | |
animation-duration: 0.1s; | |
} | |
.uk-animation-fade.animation-slow { | |
animation-duration: 1.5s; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.1.4/css/uikit.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment