Animated sequence
How do I make an animated sequence?
What is a animated sequence? How do you make a animated sequence? This script and codes were developed by Arden on 19 November 2022, Saturday.
Animated sequence - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated sequence </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> <svg version="1.1" id="app-icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="165.9 298.5 270 147" enable-background="new 165.9 298.5 270 147" xml:space="preserve"> <g id='phone' class='will-animate'> <path fill="#34C8F2" d="M246.6,302.9h-26.8c-2.5,0-4.4,2-4.4,4.4v51.9c0,2.4,2,4.4,4.4,4.4h26.8c2.5,0,4.4-2,4.4-4.4v-51.9 C251.1,304.8,249,302.9,246.6,302.9z M219.8,305.1h26.8c1.2,0,2.3,0.9,2.3,2.1v2.7h-31.3v-2.7C217.6,306.1,218.5,305.1,219.8,305.1 z M248.8,312.1v36.4h-31.3v-36.4H248.8z M246.6,361.2h-26.8c-1.2,0-2.3-0.9-2.3-2.1v-8.4h31.3v8.4 C248.8,360.3,247.8,361.2,246.6,361.2z" /> <circle fill="#34C8F2" cx="233.2" cy="355.6" r="3.4" /> </g> <path id="phone__logo" class='will-animate' fill="#34C8F2" d="M244.8,328.6c0-5.2-5.2-9.5-11.6-9.5c-6.4,0-11.6,4.2-11.6,9.5c0,4.7,4.1,8.6,9.7,9.3 c0.4,0.1,0.9,0.2,1,0.6c0.1,0.3,0.1,0.7,0.1,1c0,0-0.1,0.8-0.1,1c-0.1,0.3-0.2,1.2,1,0.7c1.2-0.5,6.7-3.9,9.2-6.8l0,0 C244,332.6,244.8,330.7,244.8,328.6z M228.6,331.7h-2.3c-0.4,0-0.6-0.3-0.6-0.6v-4.7c0-0.4,0.3-0.6,0.6-0.6 c0.4,0,0.6,0.3,0.6,0.6v4h1.7c0.4,0,0.6,0.3,0.6,0.6C229.3,331.4,229,331.7,228.6,331.7z M231,331.1c0,0.4-0.3,0.6-0.6,0.6 c-0.4,0-0.6-0.3-0.6-0.6v-4.7c0-0.4,0.3-0.6,0.6-0.6c0.4,0,0.6,0.3,0.6,0.6V331.1z M236.6,331.1c0,0.3-0.1,0.5-0.4,0.6 c-0.1,0-0.1,0-0.2,0c-0.2,0-0.4-0.1-0.5-0.2l-2.4-3.2v2.8c0,0.4-0.3,0.6-0.6,0.6c-0.4,0-0.6-0.3-0.6-0.6v-4.7 c0-0.3,0.1-0.5,0.4-0.6c0.1,0,0.1,0,0.2,0c0.2,0,0.4,0.1,0.5,0.2l2.4,3.2v-2.8c0-0.4,0.3-0.6,0.6-0.6c0.4,0,0.6,0.3,0.6,0.6 V331.1z M240.3,328.2c0.4,0,0.6,0.3,0.6,0.6c0,0.4-0.3,0.6-0.6,0.6h-1.7v1.1h1.7c0.4,0,0.6,0.3,0.6,0.6c0,0.4-0.3,0.6-0.6,0.6 H238c-0.4,0-0.6-0.3-0.6-0.6v-2.3l0,0l0,0v-2.3c0-0.4,0.3-0.6,0.6-0.6h2.3c0.4,0,0.6,0.3,0.6,0.6c0,0.4-0.3,0.6-0.6,0.6h-1.7v1.1 h1.7V328.2z" /> <g id="screen" class='will-animate'> <path fill="#34C8F2" d="M430.6,373.6h-70c-2.3,0-4.2,1.9-4.2,4.2v46.5c0,2.3,1.9,4.2,4.2,4.2h33.9v12.9H384c-0.6,0-1.1,0.5-1.1,1.1 c0,0.6,0.5,1.1,1.1,1.1h23c0.6,0,1.1-0.5,1.1-1.1c0-0.6-0.5-1.1-1.1-1.1h-10.3v-12.9h33.9c2.3,0,4.2-1.9,4.2-4.2v-46.5 C434.9,375.5,433,373.6,430.6,373.6z M432.7,424.3c0,1.1-0.9,2-2,2h-70c-1.1,0-2-0.9-2-2v-46.5c0-1.1,0.9-2,2-2h70c1.1,0,2,0.9,2,2 V424.3z" /> </g> <g id="cart" class='will-animate'> <path fill="#34C8F2" d="M333.7,334.9c-2,0-3.7,1.7-3.7,3.7s1.7,3.7,3.7,3.7s3.7-1.7,3.7-3.7S335.8,334.9,333.7,334.9z M333.7,340.6 c-1.2,0-2-0.9-2-2c0-1.2,0.9-2,2-2c1.2,0,2,0.9,2,2C335.8,339.7,334.9,340.6,333.7,340.6z" /> <path fill="#34C8F2" d="M350.4,334.9c-2,0-3.7,1.7-3.7,3.7s1.7,3.7,3.7,3.7c2,0,3.7-1.7,3.7-3.7S352.4,334.9,350.4,334.9z M350.4,340.6c-1.2,0-2-0.9-2-2c0-1.2,0.9-2,2-2c1.2,0,2,0.9,2,2C352.5,339.7,351.5,340.6,350.4,340.6z" /> <path fill="#34C8F2" d="M355.1,311.6L355.1,311.6h-4.6c-0.4,0-0.8,0-1,0h-6.7h-6.6c-0.4-0.1-0.8,0-1,0h-4.6h-0.1 c-1.7,0.4-3.1,1.5-3.8,2.8l-3.2-13.7c-0.1-0.4-0.4-0.4-0.8-0.4h-6.9c-0.4,0-0.8,0.4-0.8,0.8s0.4,0.8,0.8,0.8h6.3l6,25.5v-0.1 c0.4,2.3,2.2,3.9,4.4,4.3c0.1,0,0.2,0,0.3,0.1h0.1h0.5v-0.8l0.1,0.8l9.4-0.1l9.4,0.1v-0.8l0.1,0.8h0.5h0.1c0.1,0,0.2-0.1,0.3-0.1 c2.3-0.4,4-2.1,4.4-4.4l1.8-9.2C360,315.1,358.1,312.2,355.1,311.6z M357.8,317.7l-1.8,9.2c-0.3,1.6-1.5,2.8-3.1,3.1h-0.1 c-0.1,0-0.1,0-0.1,0l-9.8-0.1l-9.8,0.1c-0.1,0-0.1,0-0.1,0h-0.1c-1.6-0.3-2.8-1.5-3.1-3.1l-1.8-9.2c-0.4-2,0.9-4.1,3-4.5h4.5 c0.2,0,0.4,0,0.8,0h6.7l6.8-0.1c0.2,0,0.4,0,0.8,0h4.4C356.9,313.6,358.2,315.7,357.8,317.7z" /> </g> <g id='chat-bubble'> <path id='chat-bubble__bubble' class='will-animate' fill="#34C8F2" d="M189,409.7h-16.5c-3,0-5.5,2.5-5.5,5.5v13.1v1.7v2.5c0,3,2.5,5.5,5.5,5.5h13.4l4.6,5.5 c0.1,0.2,0.4,0.3,0.7,0.3c0.1,0,0.2,0,0.3-0.1c0.3-0.1,0.5-0.4,0.5-0.8v-4.9h1.2c3,0,5.5-2.5,5.5-5.5v-17.2c0-3-2.5-5.5-5.5-5.5 h-2.5L189,409.7L189,409.7z M196.9,432.4c0,2.1-1.7,3.9-3.9,3.9h-1.9c-0.4,0-0.8,0.4-0.8,0.8v3.5l-3.4-4c-0.1-0.2-0.4-0.3-0.7-0.3 h-13.8c-2.1,0-3.9-1.7-3.9-3.9v-2.5v-1.7v-13.1c0-2.1,1.7-3.9,3.9-3.9H189h1.7h2.5c2.1,0,3.9,1.7,3.9,3.9L196.9,432.4L196.9,432.4z " /> <path id='chat-bubble__question-mark' class='will-animate' fill="#34C8F2" d="M181.5,428.5c0-1.1,0.1-1.9,0.3-2.5c0.2-0.6,0.7-1.2,1.5-2c0.3-0.4,0.6-0.7,0.9-1c0.4-0.5,0.7-0.9,0.9-1.4 c0.2-0.4,0.3-0.9,0.3-1.6c0-0.7-0.1-1.3-0.5-1.9c-0.4-0.6-0.9-0.9-1.7-0.9c-1.2,0-1.9,0.4-2.3,1.2c-0.2,0.4-0.3,0.7-0.4,1.2 s-0.1,0.9-0.1,1.4h-1.8c-0.1-1.4,0.3-2.6,0.9-3.6c0.7-1,1.8-1.5,3.4-1.6c1.4,0,2.5,0.4,3.2,1.1c0.8,0.7,1.2,1.7,1.2,3.1 c0,0.7-0.1,1.3-0.3,1.8s-0.4,1-0.8,1.4c-0.3,0.4-0.7,0.8-1.1,1.2s-0.8,0.9-1.2,1.5c-0.1,0.2-0.3,0.5-0.4,0.7 c-0.1,0.6-0.1,1.2-0.1,1.9C183.4,428.5,181.5,428.5,181.5,428.5z M181.5,432.3v-2.2h2v2.2H181.5z" /> </g> <g id="hipchat"> <path id="hipchat__smile"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1-0.1-0.2-0.1l-1.5,0.2c-0.1,0-0.2,0.1-0.2,0.2v1.5h-0.8c-0.1,0-0.2,0.1-0.2,0.2v1.1c0,0.1,0.1,0.2,0.2,0.2h0.8v3.7 c0,1.2,0.7,1.9,2,1.9c0.4,0,1-0.1,1.5-0.2c0.1-0.1,0.1-0.1,0.1-0.3L423.7,404.9z" /> <path fill="#34C8F2" d="M391.5,399.3H390c-0.1,0-0.2,0.1-0.2,0.2v6.5c0,0.1,0.1,0.2,0.2,0.2h1.5c0.1,0,0.2-0.1,0.2-0.2v-6.5 C391.7,399.3,391.5,399.3,391.5,399.3" /> <path fill="#34C8F2" d="M391.5,396.5H390c-0.1,0-0.2,0.1-0.2,0.2v1.4c0,0.1,0.1,0.2,0.2,0.2h1.5c0.1,0,0.2-0.1,0.2-0.2v-1.4 C391.7,396.6,391.5,396.5,391.5,396.5" /> <path fill="#34C8F2" d="M391.5,399.3H390c-0.1,0-0.2,0.1-0.2,0.2v6.5c0,0.1,0.1,0.2,0.2,0.2h1.5c0.1,0,0.2-0.1,0.2-0.2v-6.5 C391.7,399.3,391.5,399.3,391.5,399.3" /> <path fill="#34C8F2" d="M396.5,399.1c-0.7,0-1.5,0.2-2.1,0.7l-0.1-0.4c0-0.1-0.1-0.1-0.2-0.1H393c-0.1,0-0.2,0.1-0.2,0.2v9.3 c0,0.1,0.1,0.2,0.2,0.2h1.5c0.1,0,0.2-0.1,0.2-0.2v-2.5c0.6,0.1,1.2,0.1,1.7,0.1c1.5,0,2.3-0.9,2.3-2.5v-2.3 C398.7,399.6,397.5,399.1,396.5,399.1 M396.8,401.5v2.4c0,0.6-0.2,0.8-0.7,0.8s-1.1-0.1-1.4-0.1v-3.3c0.3-0.3,0.9-0.6,1.5-0.6 C396.6,400.8,396.8,401,396.8,401.5" /> <path fill="#34C8F2" d="M410.9,399.1c-0.7,0-1.6,0.2-2.4,0.6v-3c0-0.1-0.1-0.2-0.2-0.2h-1.5c-0.1,0-0.2,0.1-0.2,0.2v9.3 c0,0.1,0.1,0.2,0.2,0.2h1.5c0.1,0,0.2-0.1,0.2-0.2v-4.5c0.5-0.3,1.2-0.5,1.7-0.5c0.3,0,0.4,0.1,0.4,0.4v4.6c0,0.1,0.1,0.2,0.2,0.2 h1.5c0.1,0,0.2-0.1,0.2-0.2v-4.8C412.5,399.8,411.9,399.1,410.9,399.1" /> </g> <path id='arrow-up' class='will-animate' fill="#34C8F2" d="M233.2,371l-0.2-0.3l-0.1,0.1c-0.2-0.1-0.4-0.1-0.7,0l-7.6,3.4l0.6,1.3l6.3-2.8 c-4.7,22.8-27.6,35.3-27.8,35.4l-0.7,0.4l0.7,1.3l0.7-0.4c0.2-0.1,23.5-12.9,28.5-36.1l3.2,5l1.2-0.8L233.2,371z" /> <path id='arrow-down' class='will-animate' fill="#34C8F2" d="M394.4,365.5l-0.2,0.3l-0.1-0.1c-0.2,0.1-0.4,0.1-0.7,0l-7.6-3.4l0.6-1.3l6.3,2.8 c-4.7-22.8-27.6-35.3-27.8-35.4l-0.7-0.4l0.7-1.3l0.7,0.4c0.2,0.1,23.5,12.9,28.5,36.1l3.2-5l1.2,0.8L394.4,365.5z" />
</svg>
<button id="button">Reset</button> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animated sequence - Script Codes CSS Codes
#app-icons { width: 400px; height: auto; display: block; margin: 120px auto 0;
}
.will-animate { visibility: hidden;
}
#button { display: block; margin: 50px auto; border: none; border-radius: 3px; background-color: #34C8F2; color: white; height: 40px; line-height: 40px; padding: 0 30px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}
Animated sequence - Script Codes JS Codes
// we set visibility:hidden in the CSS to avoid an initial flash - make them visible now, but the from() tweens are going to essentially hide them anyway because their stroke position/length will be 0.
TweenLite.set(".will-animate", { visibility: "visible"
});
// Timeline Sequence
var tl = new TimelineLite();
tl .add('action') .from('#chat-bubble__bubble', .3, { y: '+=50', opacity: 0 }) .from('#chat-bubble__question-mark', .3, { transformOrigin: "center", scale: 0 }) .add('arrows') .from('#arrow-up', .3, { y: '+=10', x: '-=10', opacity:0 }, 'arrows') .add('devices') .from("#phone", .2, { y: '-=50', opacity: 0 }) .add('logos') .from('#phone__logo', .3, { transformOrigin: "center", scale: 0 }) .from('#cart', .3, { x: '-=50', opacity: 0 }, 'action+=.3') .from('#arrow-down', .3, { y: '-=10', x: '-=10', opacity:0 }, 'arrows') .from('#screen', .3, { opacity:0, y: '+=20' }, 'devices') .from('#hipchat', .3, { transformOrigin: "center", scale: 0 }, 'logos');
// Restart button
$('#button').click(function() { tl.restart();
});
// lazy rendering (a performance optimization) can cause the initial render to be delayed by 1 tick, causing the logo to be visible for a brief moment, so we force a render here immediately. Another option would be to set lazy:false on the tween(s), but this is easier/faster.
TweenLite.render();
Developer | Arden |
Username | aderaaij |
Uploaded | November 19, 2022 |
Rating | 4 |
Size | 5,638 Kb |
Views | 14,168 |
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 |
Responsive push menu with icon transform | 8,326 Kb |
Frontpage prototype with TheaterJS | 4,292 Kb |
Vertical off-screen push menu | 6,697 Kb |
Get slider data with the Fetch API | 7,015 Kb |
CSS flip-in image | 3,944 Kb |
Vanilla JS Lightbox Slideshow | 11,123 Kb |
Intersection Observer API fun | 5,267 Kb |
Sliding images gallery | 2,947 Kb |
Mapbox Map with Animated Marker Icons | 12,296 Kb |
CFYE Profile Card | 4,819 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 |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Easing | GreenSock | 2,043 Kb |
Virtual vinyl | Davidpanik | 3,474 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
CSS3 iPad | Vikvarg | 1,766 Kb |
Preloader | Rikki_Sixx | 2,815 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!