Animated Dropdowns with scaleY

Developer
Size
2,507 Kb
Views
32,384

How do I make an animated dropdowns with scaley?

What is a animated dropdowns with scaley? How do you make a animated dropdowns with scaley? This script and codes were developed by Andy Merskin on 10 August 2022, Wednesday.

Animated Dropdowns with scaleY Previews

Animated Dropdowns with scaleY - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Dropdowns with scaleY</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> <div class="container"> <div class="dropdown"> <div class="dropdown-title" tabindex="0">Hello</div> <ul class="dropdown-menu"> <li class="dropdown-menu-item" tabindex="0">Hello</li> <li class="dropdown-menu-item" tabindex="0">World</li> <li class="dropdown-menu-item" tabindex="0">How</li> <li class="dropdown-menu-item" tabindex="0">Are</li> <li class="dropdown-menu-item" tabindex="0">You</li> </ul> </div>
</div>
</body>
</html>

Animated Dropdowns with scaleY - Script Codes CSS Codes

.container { width: 500px; margin: 50px auto;
}
.dropdown { position: relative; color: #ccc;
}
.dropdown ::-moz-selection { background-color: transparent;
}
.dropdown ::selection { background-color: transparent;
}
.dropdown-title { padding: 10px 15px; background-color: #222425; cursor: pointer; outline: none;
}
.dropdown-title:focus +.dropdown-menu { clip: rect(0 auto 400px 0);
}
.dropdown-title:focus +.dropdown-menu:after { -webkit-transform: scaleY(1); transform: scaleY(1);
}
.dropdown-title:focus +.dropdown-menu .dropdown-menu-item { opacity: 1;
}
.dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; display: block; margin: 0; padding: 10px 0; list-style: none; clip: rect(0 auto 0px 0);
/* background-color red; */
/* visibility hidden */ -webkit-transition: clip 0.6s linear; transition: clip 0.6s linear;
}
.dropdown-menu:after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; background-color: #1a1c1d; -webkit-transform: scaleY(0); transform: scaleY(0); -webkit-transform-origin: top left; transform-origin: top left; -webkit-transition: -webkit-transform 0.6s ease; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; transition: transform 0.6s ease, -webkit-transform 0.6s ease;
}
.dropdown-menu-item { padding: 10px 15px; outline: none; cursor: pointer; opacity: 0; -webkit-transition: opacity 1s ease; transition: opacity 1s ease;
}
.dropdown-menu-item:hover { background-color: rgba(255,255,255,0.1);
}
Animated Dropdowns with scaleY - Script Codes
Animated Dropdowns with scaleY - Script Codes
Home Page Home
Developer Andy Merskin
Username andymerskin
Uploaded August 10, 2022
Rating 3
Size 2,507 Kb
Views 32,384
Do you need developer help for Animated Dropdowns with scaleY?

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!

Andy Merskin (andymerskin) 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!