Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- #floating {
- animation-name: floating;
- animation-duration: 2.50s;
- animation-iteration-count: infinite;
- animation-timing-function: ease-in-out;
- }
- @keyframes floating {
- 0% {
- transform: translate(0, 0px);
- }
- 50% {
- transform: translate(0, 17px);
- }
- 100% {
- transform: translate(0, -0px);
- }
- }
- </style>
- </div>
- <div id="floating">
- <script src="https://unpkg.com/magic-snowflakes/dist/snowflakes.min.js"></script>
- <script>
- var sf = new Snowflakes({
- color: "#ffffff",
- count: 20,
- minOpacity: 0.1,
- maxOpacity: 0.6,
- maxSize: 30
- });
- </script>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement