JQuery Star flashing effect

Developer
Size
2,487 Kb
Views
52,624

How do I make an jquery star flashing effect?

A client wanted stars flashing around their logo and wanted flash. Used jQuery instead to create the same effect. With the added bonus not having a repeating pattern.. What is a jquery star flashing effect? How do you make a jquery star flashing effect? This script and codes were developed by Matt Edwards on 12 August 2022, Friday.

JQuery Star flashing effect Previews

JQuery Star flashing effect - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>jQuery Star flashing effect</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="header"> <h1>STARS</h1> <div class="star star-1"></div> <div class="star star-2"></div> <div class="star star-3"></div> <div class="star star-4"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

JQuery Star flashing effect - Script Codes CSS Codes

body { background: black;
}
h1 { color: white; font-size: 72px; padding: 25px 0 0 100px; font-family: helvetica; font-weight: 100;
}
.star { position: absolute; background: url(https://dl.dropbox.com/u/1488103/julie-logo-sparkle.png) no-repeat; background-size: contain; overflow: hidden;
}
.star.star-1 { width: 50px; height: 34px; top: 110px; left: 97px;
}
.star.star-2 { width: 83px; height: 77px; top: 18px; left: 224px;
}
.star.star-3 { width: 74px; height: 70px; top: 115px; left: 172px;
}
.star.star-4 { width: 68px; height: 70px; top: 46px; left: 162px;
}

JQuery Star flashing effect - Script Codes JS Codes

$(function () { setInterval(function () { $('.star-1').fadeOut(150).delay(2000).fadeIn(300).fadeOut(150).delay(1254); $('.star-2').fadeOut(300).fadeIn(120).fadeOut(120).delay(1920); $('.star-3').fadeOut(150).delay(1200).fadeIn(300).fadeOut(150).delay(800); $('.star-4').fadeOut(700).fadeIn(300).fadeOut(160).delay(1350); }, 1); });
JQuery Star flashing effect - Script Codes
JQuery Star flashing effect - Script Codes
Home Page Home
Developer Matt Edwards
Username mtedwards
Uploaded August 12, 2022
Rating 4
Size 2,487 Kb
Views 52,624
Do you need developer help for JQuery Star flashing effect?

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!

Matt Edwards (mtedwards) 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!