EaseInOutSine Gradient Demo
How do I make an easeinoutsine gradient demo?
What is a easeinoutsine gradient demo? How do you make a easeinoutsine gradient demo? This script and codes were developed by Andreas Larsen on 25 August 2022, Thursday.
EaseInOutSine Gradient Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>EaseInOutSine Gradient Demo</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="outer"> <div class="inner"> <h2>linear</h2> </div>
</div>
<div class="outer outer--smooth"> <div class="inner inner--smooth"> <h2>ease-in-out-sine</h2> </div>
</div> <script src='https://codepen.io/larsenwork/pen/0871c9957ff96903e2bcc22a30028839.js'></script>
</body>
</html>
EaseInOutSine Gradient Demo - Script Codes CSS Codes
/*
ease-in-out-sine-gradient is processed into:
linear-gradient( hsl(290, 50%, 8%) 0%, hsla(290, 50%, 8%, 0.978) 9.5%, hsla(290, 50%, 8%, 0.925) 17.7%, hsla(290, 50%, 8%, 0.857) 24.7%, hsla(290, 50%, 8%, 0.781) 31%, hsla(290, 50%, 8%, 0.701) 36.8%, hsla(290, 50%, 8%, 0.62) 42.3%, hsla(290, 50%, 8%, 0.538) 47.6%, hsla(290, 50%, 8%, 0.455) 52.9%, hsla(290, 50%, 8%, 0.373) 58.2%, hsla(290, 50%, 8%, 0.291) 63.7%, hsla(290, 50%, 8%, 0.212) 69.5%, hsla(290, 50%, 8%, 0.138) 75.8%, hsla(290, 50%, 8%, 0.07) 82.9%, hsla(290, 50%, 8%, 0.019) 91.2%, hsla(290, 50%, 8%, 0) 100%
)
*/
.outer { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: hsl(290, 50%, 8%)
}
.outer--smooth { opacity: 0; -webkit-animation: displayMe; animation: displayMe; -webkit-animation-duration: 5s; animation-duration: 5s; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite
}
.inner { width: 100%; height: 75%; background: -webkit-linear-gradient( left, hsla(290, 100%, 50%, .7), hsla(330, 100%, 60%, .75), hsla(30, 100%, 50%, .7) ); background: linear-gradient( to right, hsla(290, 100%, 50%, .7), hsla(330, 100%, 60%, .75), hsla(30, 100%, 50%, .7) ); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: relative
}
.inner:before, .inner:after { content: ''; position: absolute; height: 33%; width: 100%; left: 0; background-image: -webkit-linear-gradient( hsl(290, 50%, 8%), hsla(290, 50%, 8%, 0) ); background-image: linear-gradient( hsl(290, 50%, 8%), hsla(290, 50%, 8%, 0) )
}
.inner:before { top: -.5px
}
.inner:after { bottom: -.5px; -webkit-transform: rotate(180deg); transform: rotate(180deg)
}
.inner--smooth { height: 90%
}
.inner--smooth:before, .inner--smooth:after { height: 45%; background-image: ease-in-out-sine-gradient( hsl(290, 50%, 8%), transparent )
}
@-webkit-keyframes displayMe { 0% { opacity: 1 } 50% { opacity: 1 } 50.5% { opacity: 0 }
}
@keyframes displayMe { 0% { opacity: 1 } 50% { opacity: 1 } 50.5% { opacity: 0 }
}
@font-face { font-family: Montserrat; font-weight: 400; src: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/256812/Montserrat-Regular.woff);
}
body { font-family: Montserrat; font-weight: 400; color: white;
}
h2 { font-size: 12vmin; letter-spacing: -0.04em; text-align: center;
}
Developer | Andreas Larsen |
Username | larsenwork |
Uploaded | August 25, 2022 |
Rating | 4.5 |
Size | 3,205 Kb |
Views | 76,912 |
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 |
Optimised SVG Flags | 6,585 Kb |
Social.svg.min | 13,849 Kb |
2 shadows are better than 1 | 2,850 Kb |
Discover Color | 5,363 Kb |
Easing gradients - take 2 | 3,551 Kb |
Layout code-off | 3,494 Kb |
CphRain code off | 2,558 Kb |
Snap.svg letter morph animation | 6,431 Kb |
Thanks for downloading | 3,520 Kb |
Layout code-off completed | 4,505 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 |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Freecodecamp - Tribute Page | Samoht513 | 3,583 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
Boxes | H3l1um | 2,563 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
A vuejs widget | Chrgl86 | 2,869 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!