Open close icon animation
How do I make an open close icon animation?
Https://dribbble.com/shots/1621359-Open-Close-Icon-Animation. What is a open close icon animation? How do you make a open close icon animation? This script and codes were developed by Amanda Cheung on 15 November 2022, Tuesday.
Open close icon animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Open close icon animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg id="toggle" viewBox="0 0 80 50"> <line x1="10" y1="10" x2="40" y2="40" /> <line x1="70" y1="10" x2="40" y2="40" />
</svg> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Open close icon animation - Script Codes CSS Codes
svg { max-width: 100px; cursor: pointer;
}
line { stroke-width: 8px; stroke-linecap: round; fill: none; stroke: black; transition-duration: .25s; transition-propery: transform;
}
svg.is-open line:first-child { transform: translateX(15px);
}
svg.is-open line:last-child { transform: translateX(-15px);
}
Open close icon animation - Script Codes JS Codes
$("#toggle").click(function() { $(this).toggleClass("is-open");
})
Developer | Amanda Cheung |
Username | acacheung |
Uploaded | November 15, 2022 |
Rating | 3 |
Size | 1,822 Kb |
Views | 157,872 |
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 |
GSAP rising block with reflection | 2,516 Kb |
GSAP stagger cheezburger | 4,972 Kb |
Multi-step GSAP animation | 2,668 Kb |
A Pen by Amanda Cheung | 1,572 Kb |
GSAP chomping cheezburger | 5,008 Kb |
Transparent tooltip with border | 1,927 Kb |
GSAP rising block | 2,417 Kb |
Link transition and keyframe animation demo | 1,681 Kb |
Dobot wireframe | 1,507 Kb |
Why Make Sense - Hot Chip | 1,659 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 |
Simple blog concept | Drew_mc | 2,666 Kb |
Midterm dry run | Jds317 | 1,649 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Practice using Wixel | Emnk | 3,057 Kb |
Large canvas mousemove experiment | Jibbon | 2,885 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Formations | Cantelope | 5,731 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 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!