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 |
Banner hover test | 2,825 Kb |
Brightness regulation UI design | 2,713 Kb |
Centered Text in a Perfect Circle | 2,410 Kb |
Erno | 5,311 Kb |
Horizontal Scroll with device motion | 2,446 Kb |
Diagonal Nav bar | 2,392 Kb |
Subtle Animation Example | 2,101 Kb |
Subtle Quote | 3,379 Kb |
A Pen by Nick Colley | 18,585 Kb |
Flickering TV | 167,407 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 |
Pomodoro Timer | Sdas13 | 2,900 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Wikipedia API | Coderpilot | 2,802 Kb |
LeMandinque | Aadesida | 9,046 Kb |
Formations | Cantelope | 5,731 Kb |
Right Click Menu | Anodpixels | 2,252 Kb |
HEXAGON | Aurumlux | 1,684 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Codero Sitemap | S1m0ne | 28,169 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!