Subtle Animation Example
How do I make an subtle animation example?
What is a subtle animation example? How do you make a subtle animation example? This script and codes were developed by Nick Colley on 12 November 2022, Saturday.
Subtle Animation Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Subtle Animation Example</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="scene"> <div class="poof-left"></div> <div class="rocket"></div> <div class="poof-right"></div> <div class="sun"></div> <div class="clouds"></div>
</div>
<!-- Demo from drpgroup's boom promotion --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Subtle Animation Example - Script Codes CSS Codes
html,body { height: 100%; width: 100%;
}
.scene { position: relative; height: 768px; width: 979px; background: url('https://i.imgur.com/naThO7D.png') no-repeat; -webkit-backface-visibility: none;
}
.poof-left { top: 220px; left: 250px; position: absolute; width: 225px; height: 206px; background: url('https://i.imgur.com/2MJE4VT.png') no-repeat 0 0; -webkit-transform-origin: 100px 5px; -moz-transform-origin: 100px 5px; -o-transform-origin: 100px 5px; -ms-transform-origin: 100px 5px; transform-origin: 100px 5px;
}
.rocket { top: 100px; right: 240px; position: absolute; width: 137px; height: 259px; background: url('https://i.imgur.com/2MJE4VT.png') no-repeat -228px 0; -webkit-transform-origin: 75px 80px; -moz-transform-origin: 75px 80px; -o-transform-origin: 75px 80px; -ms-transform-origin: 75px 80px; transform-origin: 75px 80px;
}
.sun { top: 95px; right: 130px; position: absolute; width: 78px; height: 96px; background: url('https://i.imgur.com/2MJE4VT.png') no-repeat -235px -263px; -webkit-transform-origin: 35px 10px; -moz-transform-origin: 35px 10px; -o-transform-origin: 35px 10px; -ms-transform-origin: 35px 10px; transform-origin: 35px 10px;
}
.poof-right { top: 260px; right: 140px; position: absolute; width: 120px; height: 129px; background: url('https://i.imgur.com/2MJE4VT.png') no-repeat -1px -258px; -webkit-transform-origin: 50% 0; -moz-transform-origin: 50% 0; -o-transform-origin: 50% 0; -ms-transform-origin: 50% 0; transform-origin: 50% 0;
}
.clouds { top: 160px; right: 30px; position: absolute; width: 103px; height: 141px; background: url('https://i.imgur.com/2MJE4VT.png') no-repeat -126px -266px; -webkit-transform-origin: 50% 0; -moz-transform-origin: 50% 0; -o-transform-origin: 50% 0; -ms-transform-origin: 50% 0; transform-origin: 50% 0;
}
.scene div { -webkit-animation: bob 1s ease-in-out infinite alternate; -moz-animation: bob 1s ease-in-out infinite alternate; -ms-animation: bob 1s ease-in-out infinite alternate; -o-animation: bob 1s ease-in-out infinite alternate; animation: bob 1s ease-in-out infinite alternate;
}
.scene div:nth-child(even) { -webkit-animation: bob 1s 1s ease-in-out infinite alternate; -moz-animation: bob 1s 1s ease-in-out infinite alternate; -ms-animation: bob 1s 1s ease-in-out infinite alternate; -o-animation: bob 1s 1s ease-in-out infinite alternate; animation: bob 1s 1s ease-in-out infinite alternate;
}
@keyframes "bob" { to { -webkit-transform: translateY(2px) rotate(1deg); -moz-transform: translateY(2px) rotate(1deg); -o-transform: translateY(2px) rotate(1deg); -ms-transform: translateY(2px) rotate(1deg); transform: translateY(2px) rotate(1deg); }
}
@-moz-keyframes bob { to { -moz-transform: translateY(2px) rotate(1deg); transform: translateY(2px) rotate(1deg); }
}
@-webkit-keyframes "bob" { to { -webkit-transform: translateY(2px) rotate(1deg); transform: translateY(2px) rotate(1deg); }
}
@-ms-keyframes "bob" { to { -ms-transform: translateY(2px) rotate(1deg); transform: translateY(2px) rotate(1deg); }
}
@-o-keyframes "bob" { to { -o-transform: translateY(2px) rotate(1deg); transform: translateY(2px) rotate(1deg); }
}
Developer | Nick Colley |
Username | nickcolley |
Uploaded | November 12, 2022 |
Rating | 3 |
Size | 2,101 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Close animation | 2,207 Kb |
Brightness regulation UI design | 2,713 Kb |
Horizontal Scroll with device motion | 2,446 Kb |
Subtle Quote | 3,379 Kb |
Custom Soundcloud Player | 3,033 Kb |
Wip elementary os navbar | 2,993 Kb |
One element icon | 1,976 Kb |
Linux Install Terminal | 2,259 Kb |
A Pen by Nick Colley | 18,585 Kb |
Raincoat PC | 3,164 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
3D-box | Parthviroja | 2,346 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Spinners using Font Icons | Keyamoon | 3,007 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Cloud upload | Jaflo | 2,774 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!