Tutorials Point, posted 9h 12m ago

CSS perspective-origin property

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo1 {
            position: relative;
            margin: auto;
            height: 250px;  
            width: 350px;
            padding: 10px;
            border: 2px solid orange;
            perspective: 125px;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            70% {
               perspective-origin: 5px 30%;
            }
         }
         #demo2 {
            padding: 70px;
            position: absolute;
            border: 2px solid black;
            background-color: blue;
            color: white;
            transform: rotateX(30deg);
         }
      </style>
   </head>
   <body>
      <h1>CSS perspective-origin property</h1>
      <div id = "demo1">This is demo text in div1.
         <div id="demo2">This is demo text in div2.</div>
      </div>
   </body>
</html>

Tutorials Point, posted 9h 13m ago

CSS text-decoration-color Property

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo {
            position: absolute;
            right: 0;
            width: 300px;
            height: 200px;
            background-color: blue;
            text-decoration: underline;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            30% {
               right: 350px;
               text-decoration-color: orange;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS text-decoration-color property</h1>
      <div id = "demo">
         <h1>This is demo text.</h1>
      </div>
   </body>
</html>

Tutorials Point, posted 9h 22m ago

CSS outline-color Property

<!DOCTYPE html>
<html>
    <head>
      <style>
         div {
            width: 550px;
            height: 350px;
            outline: 2px solid blue;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            50% {
               outline-color: orange;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS outline-color property</h1>
      <div>
      </div>
   </body>
</html>

Tutorials Point, posted 9h 24m ago

CSS perspective property

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo1 {
            position: relative;  
            margin-left: 120px;
            height: 250px;
            width: 350px;
            padding: 10px;
            border: 1px solid orange;
            animation: myanim 3s infinite;
            perspective: 200px;
         }
         @keyframes myanim {
            50% {
               perspective: 100px;
            }
         }
         #demo2 {
            padding: 90px;
            position: absolute;
            border: 1px solid black;
            background-color: orange;
            transform: rotateX(60deg);
         }
      </style>
   </head>
   <body>
      <div id = "demo1">This is demo text in div1.
         <div id = "demo2">This is demo text in div2.</div>
      </div>
   </body>
</html>

Tutorials Point, posted 9h 32m ago

CSS padding-top Property

<html>
   <head>
      <style>
         div {
            width: 350px;
            height: 150px;
            outline: 3px solid maroon;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            30% {
               padding-top: 60px;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS padding-top property</h1>
      <div> </div>
   </body>
</html>

Tutorials Point, posted 9h 40m ago

CSS padding-right Property

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 350px;
            height: 150px;
            outline: 3px solid orange;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            30% {
               padding-right: 60px;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS padding-right property</h1>
      <div>
      </div>
   </body>
</html>

Tutorials Point, posted 9h 45m ago

CSS padding-left property

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 350px;
            height: 150px;
            outline: 3px solid orange;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            50% {
               padding-left: 20px;
            }
         }    
      </style>
   </head>
   <body>
      <h1>CSS padding-left property</h1>
      <div>
      </div>
   </body>
</html>

Tutorials Point, posted 10h 9m ago

CSS padding property

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 350px;
            height: 150px;
            outline: 2px solid orange;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            50% {
               padding: 20px;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS padding property</h1>
      <div>
      </div> 
   </body>
</html>






Tutorials Point, posted 10h 18m ago

CSS outline-width

<!DOCTYPE html>
<html>
   <head>
      <style>
         div {
            width: 350px;
            height: 150px;
            outline: 2px solid yellow;
            animation: myanim 3s infinite;
         }
         @keyframes myanim {
            50% {
               outline-width: 10px;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS outline-width property</h1>
      <div>
      </div>
   </body>
</html>

Tutorials Point, posted 10h 24m ago

CSS order property

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo1 {
            width: 600px;
            height: 180px;
            display: flex;
         }
         #inner {
            animation: myanim 3s infinite;
         }
         #demo1 div {
            width: 110px;
            height: 180px;
         }
         @keyframes myanim {
            30% {
               order: 4;
            }
         }
      </style>
   </head>
   <body>
      <h1>CSS order property</h1>
      <div id = "demo1">
         <div style = "background-color:yellow;order:1;" id="inner"></div>
         <div style = "background-color:blue;order:2;"></div>
         <div style = "background-color:orange;order:3;"></div>
         <div style = "background-color:pink;order:4;"></div>
         <div style = "background-color:gray;order:5;"></div>
         <div style = "background-color:maroon;order:6;" id="inner"></div>
      </div>
   </body>
</html>

Advertisements
Loading...