SVG Christmas Light Icon Animated with CSS

Developer
Size
2,224 Kb
Views
74,888

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 Previews

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
SVG Christmas Light Icon Animated with CSS - Script Codes
SVG Christmas Light Icon Animated with CSS - Script Codes
Home Page Home
Developer Noah Blon
Username noahblon
Uploaded June 24, 2022
Rating 3.5
Size 2,224 Kb
Views 74,888
Do you need developer help for SVG Christmas Light Icon Animated with CSS?

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!

Noah Blon (noahblon) Script Codes
Create amazing web content with AI!

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!