Pulsar
How do I make an pulsar?
What is a pulsar? How do you make a pulsar? This script and codes were developed by Todd Moy on 14 October 2022, Friday.
Pulsar - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pulsar</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <button class="btn">Item One</button>
<button class="btn">Item Two</button> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Pulsar - Script Codes CSS Codes
html, body { height: 100%; min-height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-pack: distribute; justify-content: space-around; font-family: sans-serif; font-size: 13px;
}
.btn { background-color: rgba(26, 130, 226, 0.8); color: white; border-radius: 2px; padding: 12px 30px; display: inline-block; border: solid #1A82E2 1px;
}
.btn:hover { background-color: #1a82e2; cursor: pointer;
}
.btn:active { -webkit-transform: translate(0%, 2px); transform: translate(0%, 2px); background-color: rgba(26, 130, 226, 0.9);
}
.sonar--pinging { position: relative;
}
.sonar--pinging:before, .sonar--pinging:after { content: " "; position: absolute; display: block; width: 10px; height: 10px; left: -5px; /* -0.5 x width */ top: -5px; /* -0.5 x height */ border-radius: 100px; background-color: #b71b1b; z-index: 9999; opacity: 0; -webkit-animation: sonar--animate 3s infinite ease-out; animation: sonar--animate 3s infinite ease-out;
}
.sonar--pinging:after { -webkit-animation-delay: 0.5s; animation-delay: 0.5s;
}
@-webkit-keyframes sonar--animate { 0% { opacity: 0.3; -webkit-transform: scale(0); transform: scale(0); } 50% { opacity: 0; -webkit-transform: scale(10); transform: scale(10); } 100% { opacity: 0; -webkit-transform: scale(8); transform: scale(8); }
}
@keyframes sonar--animate { 0% { opacity: 0.3; -webkit-transform: scale(0); transform: scale(0); } 50% { opacity: 0; -webkit-transform: scale(10); transform: scale(10); } 100% { opacity: 0; -webkit-transform: scale(8); transform: scale(8); }
}
Pulsar - Script Codes JS Codes
// Sonar Plugin
// adds pulsing rings to a given element
;(function($, window, document, undefined) { var pluginName = "sonar", defaults = {}; function Plugin(element, options) { this.init(element); } Plugin.prototype.init = function(element) { $(element).addClass("sonar--pinging"); // we'll want to disable this forever, once the user has touched it. May need to store this in a cookie. $(element).on("mouseover", this.disable); }; Plugin.prototype.disable = function() { $(this).removeClass("sonar--pinging"); } $.fn[pluginName] = function(options) { return this.each(function() { if (!$.data(this, "plugin_" + pluginName)) { $.data(this, "plugin_" + pluginName, new Plugin(this, options)); } }); }
}(jQuery, window, document));
// Initialize
$(document).ready(function(){ $(".btn").sonar();
});
Developer | Todd Moy |
Username | toddmoy |
Uploaded | October 14, 2022 |
Rating | 3 |
Size | 3,191 Kb |
Views | 12,144 |
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 |
Loader 5 | 2,489 Kb |
A Pen by Todd Moy | 2,144 Kb |
SVG Animation Test | 3,102 Kb |
Header Test | 7,978 Kb |
Flexbox test | 2,152 Kb |
Experiment | 2,849 Kb |
Subscribe Button | 2,906 Kb |
Modal Interaction Test | 3,142 Kb |
Hidden Menu Test | 3,582 Kb |
Logo Animation | 2,580 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 |
SnappySnippet Test | Elmsoftware | 8,385 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Responsive Advert | James_zedd | 2,354 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Three js | Paulq | 2,353 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
Custom checkbox example | Capelo | 3,495 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 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!