JQuery Star flashing effect
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 - 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); });
Developer | Matt Edwards |
Username | mtedwards |
Uploaded | August 12, 2022 |
Rating | 4 |
Size | 2,487 Kb |
Views | 52,624 |
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 |
Quiz | 2,814 Kb |
Angular Instagram test | 2,396 Kb |
JQuery featured gallery | 7,630 Kb |
AussieTheatre Logo | 1,756 Kb |
A Pen by Matt Edwards | 1,700 Kb |
Calendar | 3,834 Kb |
JQuery .show .hide menu | 2,356 Kb |
Basic jQuery Filter list | 2,464 Kb |
JQuery lesson from Treehouse | 3,137 Kb |
Basic jQuery Tabs | 2,555 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 |
NeeilTimer | Neeilan | 2,836 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
Navcube | Wbarlow | 4,775 Kb |
Text Blocks Over Image, Updated | KatieK2 | 3,122 Kb |
Hello People | Danburrows | 2,365 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
See Through | Larrygeams | 77,410 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!