Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> CSS

CSS transition-timing-function प्रॉपर्टी


transition-timing-function से अलग-अलग स्पीड कर्व सेट करने के लिए निम्न कोड चलाकर देखें:

उदाहरण

<!DOCTYPE html> <html>    <head>       <style>          div {             width: 100px;             height: 100px;             background: red;             transition: width 4s;          }          #effect1 {             transition-timing-function: linear;          }          #effect2 {             transition-timing-function: ease-in;          }          #effect3 {             transition-timing-function: ease-out;          }          div:hover {             width: 250px;          }       </style>    </head>    <body>       <h1>Transition Effect</h1>       <p>Hover over the div elements and see the transition effect and the speed:</p>       <div id = "effect1">linear effect</div><br>       <div id = "effect2">ease-in effect</div><br>       <div id = "effect3">ease-out effect</div><br>    </body> </html>

  1. - CSS flex-basis प्रॉपर्टी को एनिमेट करें

    CSS flex-basis प्रॉपर्टी (फ्लेक्स आइटम की प्रारंभिक मुख्य आकार) को एनिमेट करने के लिए @keyframes का उपयोग करें। उदाहरण <!DOCTYPE html> <html> <head> <style>    .box {       display: flex;       background-color: green;    } &

  1. - CSS flex-shrink प्रॉपर्टी पर एनिमेशन करें

    फ्लेक्स-श्रिंक एनिमेशन flex-shrink प्रॉपर्टी पर CSS एनिमेशन लागू करें: उदाहरण <!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; background-color: orange; } .mycontainer > div { background-color: white; text-align: center;

  1. CSS isolation प्रॉपर्टी CSS isolation प्रॉपर्टी

    isolation प्रॉपर्टी का उपयोग यह परिभाषित करने के लिए किया जाता है कि कोई तत्व एक नया स्टैकिंग संदर्भ बनाएगा या नहीं। सिंटैक्स isolation: auto | isolate | initial | inherit; उदाहरण <!DOCTYPE html> <html> <head> <style> .demo1 { background-color: orange; }