Close animation

Developer
Size
2,207 Kb
Views
6,072

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 Previews

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);
});
Close animation - Script Codes
Close animation - Script Codes
Home Page Home
Developer Nick Colley
Username nickcolley
Uploaded November 12, 2022
Rating 3
Size 2,207 Kb
Views 6,072
Do you need developer help for Close animation?

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!

Nick Colley (nickcolley) Script Codes
Create amazing SEO content with AI!

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!