SVG Christmas Light Icon Animated with CSS
How do I make an svg christmas light icon animated with css?
Check out the tutorial on Tuts+!. What is a svg christmas light icon animated with css? How do you make a svg christmas light icon animated with css? This script and codes were developed by Noah Blon on 24 June 2022, Friday.
SVG Christmas Light Icon Animated with CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG Christmas Light Icon Animated with CSS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg class="svg-light" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <path class="outline" d="M38.178,12.142H25.823v10.723c-1.606,2.67-2.461,6.529-2.461,11.406c0,9.473,4.748,17.587,8.636,17.587c3.889,0,8.641-8.114,8.641-17.587c0-4.881-0.854-8.744-2.461-11.412V12.142z" /> <rect class="base" x="29.822" y="16.142" width="4.355" height="4.273" /> <path class="bulb" d="M31.998,47.768c-1.402-0.959-4.637-6.229-4.637-13.497c0-5.775,1.272-8.566,2.207-9.856h4.858c0.945,1.293,2.213,4.081,2.213,9.856C36.639,41.542,33.402,46.809,31.998,47.768" />
</svg> <script src="js/index.js"></script>
</body>
</html>
SVG Christmas Light Icon Animated with CSS - Script Codes CSS Codes
html, body, svg { height: 100%; width: 100%; margin: 0;}
.svg-light .base { fill: hsl(145, 63%, 22%); }
.svg-light .bulb { fill: hsl(204, 70%, 23%); -webkit-animation-name: glow-blue; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: ease-in-out; -webkit-animation-direction: alternate; animation-name: glow-blue; animation-duration: 1s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-direction: alternate; -moz-animation: none;
}
@-webkit-keyframes glow-blue { 0% { fill: hsl(204, 80%, 23%); } 100% { fill: hsl(204, 80%, 63%); }
}
@keyframes glow-blue { 0% { fill: hsl(204, 80%, 23%); } 100% { fill: hsl(204, 80%, 63%); }
}
SVG Christmas Light Icon Animated with CSS - Script Codes JS Codes
// Check out the tutorial on Tuts+: http://webdesign.tutsplus.com/?p=17658
Developer | Noah Blon |
Username | noahblon |
Uploaded | June 24, 2022 |
Rating | 3.5 |
Size | 2,224 Kb |
Views | 74,888 |
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 |
9 Pens | 3,350 Kb |
3D CSS Text with Perspective | 4,044 Kb |
An Intro to SVG Animation with SMIL - Example 1 | 1,987 Kb |
Glitch Pop | 4,644 Kb |
Planet | 3,572 Kb |
Free Radicals | 33,329 Kb |
Colored SVG background-image - Mask Method | 2,328 Kb |
Juggle | 3,302 Kb |
Colored SVG background-image - Filter Method | 2,392 Kb |
Responsive Image Grid using SVG wrappers | 3,859 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 |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
Matrix | Stathisnikolaidis | 1,922 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
Social buttons | Flacu | 2,022 Kb |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
Price | Catcode | 2,623 Kb |
A Pen by John Malc | F789gh | 1,420 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
Twitch Live Channels | Inkblotty | 4,956 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!