Xbox Achievement Notification
How do I make an xbox achievement notification?
This is a quick Xbox Achievement style notification but it's kinda sloppy right now with all the setTimeouts... Going to try and do this all with just CSS3 animations and transitions. . What is a xbox achievement notification? How do you make a xbox achievement notification? This script and codes were developed by Gus Alaniz on 25 October 2022, Tuesday.
Xbox Achievement Notification - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Xbox Achievement Notification</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="achievement" class=""> <div class="circle"></div> <div class="copy"> <h4>Achievement Unlocked!</h4> <p>Here are some internet points!</p> </div>
</div>
<div class="refresh">again?</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Xbox Achievement Notification - Script Codes CSS Codes
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
body { background: #209DD2; font-family: Lato;
}
#achievement { width: 100px; height: 100px; border-radius: 50%; background: #fff; position: relative; transform: scale(0); transition: 250ms ease-in-out; margin: 40px auto; box-shadow: 0 3px 20px #1E7195;
}
#achievement.expand { transform: scale(1);
}
#achievement.expand .circle:before { animation: rotate 400ms linear;
}
#achievement.expand.widen { width: 380px; border-radius: 50px;
}
#achievement .circle { width: 80px; height: 80px; border-radius: 50%; background: #E4BF2B; position: absolute; top: 10px; left: 10px;
}
#achievement .circle:before { font-size: 50px; font-family: FontAwesome; display: inline-block; content: "\f005"; color: #fff; position: absolute; top: 15px; left: 17px; transform: scale(1); transition: 250ms ease-in-out;
}
#achievement .circle.rotate:before { animation: rotateBack 400ms linear;
}
#achievement .copy { opacity: 0; transition: 250ms ease-in-out; width: 240px; position: absolute; left: 100px; top: 35px;
}
#achievement .copy.show { opacity: 1; top: 25px;
}
#achievement .copy h4 { font-size: 22px; margin: 0;
}
#achievement .copy p { margin: 0;
}
.refresh { display: none; text-align: center; color: #fff; text-decoration: underline; font-size: 18px; cursor: pointer;
}
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}
@keyframes rotateBack { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); }
}
Xbox Achievement Notification - Script Codes JS Codes
function showAchievement() { $('#achievement .circle').removeClass('rotate'); // Run the animations setTimeout(function () { $('#achievement').addClass('expand'); setTimeout(function () { $('#achievement').addClass('widen'); setTimeout(function () { $('#achievement .copy').addClass('show'); }, 1000); }, 1000); }, 1000); // Hide the achievement setTimeout(function () { hideAchievement(); }, 4000);
}
function hideAchievement() { setTimeout(function () { $('#achievement .copy').removeClass('show'); setTimeout(function () { $('#achievement').removeClass('widen'); $('#achievement .circle').addClass('rotate'); setTimeout(function () { $('#achievement').removeClass('expand'); $('.refresh').fadeIn(300); }, 1000); }, 1000); }, 3000); $('.refresh').click(function () { showAchievement(); $(this).fadeOut(300); });
}
showAchievement();
![Xbox Achievement Notification - Script Codes](http://shots.codepen.io/alanizdesign/pen/MmzWWW-512.jpg)
Developer | Gus Alaniz |
Username | alanizdesign |
Uploaded | October 25, 2022 |
Rating | 3 |
Size | 3,318 Kb |
Views | 28,336 |
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 |
IMessage Questions | 4,785 Kb |
Notification Corner Box | 2,948 Kb |
Toggle HTML on Click | 2,473 Kb |
A Thing | 2,130 Kb |
A Pen by Gus Alaniz | 2,275 Kb |
CSS3 Circle loader One Time around | 2,781 Kb |
Slide Up Through Feed | 2,541 Kb |
Super Simple CSS Sub Nav | 2,268 Kb |
SVG Rotating Circle Loader | 2,283 Kb |
Pie Circle Loader | 2,775 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 |
Smoke Shader - Frame Buffer | Omarshe7ta | 2,672 Kb |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
CSS3 Fullscreen Background Slideshow | Leetech | 3,435 Kb |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
Simple Linear Regression with Editable Table | Melatonind | 3,264 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
HEXAGON | Aurumlux | 1,684 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!