Close animation
How do I make an close animation?
Inspired by Androids default locking animation. Alternative to a fadeout or something boring like that.. What is a close animation? How do you make a close animation? This script and codes were developed by Nick Colley on 12 November 2022, Saturday.
Close animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Close animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ div { overflow: hidden; margin: 50px auto; width: 200px; height: 200px; border: 1px solid #CCC; background: #F8F8F8; box-shadow: 0 0 0 10000px rgba(0,0,0,.1);
}
button { float: right; border: none; background: #DDD; color: #FFF;
}
.close { height: 0; width: 0; box-shadow: none; transition: all .1s linear, width .1s .15s linear; transform: translateY(115px);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div> <button>X</button>
</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>
Close animation - Script Codes CSS Codes
div { overflow: hidden; margin: 50px auto; width: 200px; height: 200px; border: 1px solid #CCC; background: #F8F8F8; box-shadow: 0 0 0 10000px rgba(0,0,0,.1);
}
button { float: right; border: none; background: #DDD; color: #FFF;
}
.close { height: 0; width: 0; box-shadow: none; transition: all .1s linear, width .1s .15s linear; transform: translateY(115px);
}
Close animation - Script Codes JS Codes
$('button').click(function(){ $('div').addClass('close').delay(350).hide(0);
});
Developer | Nick Colley |
Username | nickcolley |
Uploaded | November 12, 2022 |
Rating | 3 |
Size | 2,207 Kb |
Views | 6,072 |
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 |
Henry Homesweet Boxmodel | 3,747 Kb |
Brightness regulation UI design | 2,713 Kb |
Subtle Animation Example | 2,101 Kb |
Raincoat PC | 3,164 Kb |
Diagonal Nav bar | 2,392 Kb |
Horizontal Scroll with device motion | 2,446 Kb |
Subtle Quote | 3,379 Kb |
A Pen by Nick Colley | 18,585 Kb |
Flickering TV | 167,407 Kb |
Music | 4,521 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 |
Eunice A | Ejbronze | 2,203 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
CSS3 iPad | Vikvarg | 1,766 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
Pomodoro Clock | Yas46 | 3,328 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Flip test | Madhes | 1,635 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
Test | Dviate | 2,668 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!