एनीमेशन-टाइमिंग-फ़ंक्शन प्रॉपर्टी का उपयोग करें, एनीमेशन को धीमी शुरुआत के साथ सेट करने के लिए आसान मान के साथ, फिर तेज़, सीएसएस के साथ धीरे-धीरे समाप्त करने के लिए
उदाहरण
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 200px;
position: relative;
background-color: yellow;
animation-name: myanim;
animation-duration: 2s;
animation-direction: alternate-reverse;
animation-iteration-count: 3;
}
@keyframes myanim {
from {left: 100px;}
to {left: 200px;}
}
#demo1 {animation-timing-function: ease;}
</style>
</head>
<body>
<div id = "demo1">ease effect</div>
</body>
</html>