Randomly generated floating/hovering animation in JS
All four of the circles below are using a different set of keyframes
Usage
/** | |
* @param $interval - The interval between each delay, defaults to 500ms | |
* @param $startTime - The start time of the animations, defaults to 0ms | |
* @param $numberOfDelays - The total number of delays to be generated, defaults to 10 | |
*/ | |
@mixin delays($interval: 500, $startTime: 0, $numberOfDelays: 10) { | |
@for $i from 0 through $numberOfDelays { | |
$ms : $startTime + ($i * $interval); | |
&.delay-#{$ms} { | |
animation-delay: #{$ms}ms; |
Need search on your website but don't want to do all the work of setting up a server or a db? Here's how to do it:
Unfortunately, this method requires jQuery, so if you're trying to avoid that you're out of luck.
Search results will show up on the same page as the search input.