Wednesday, November 24, 2021

The transition Property

 The transition Property Code



<!DOCTYPE html>

<html>

    <head>

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

         <link rel="STYLESHEET"type="text/css"href="web.css">

        <title>web design</title>

    </head>

    <body>

        <h1>The transition Property</h1>

        <p>Hover over the div element below, to see the transition effect:</p>

        <div></div>

 </body>

</html> 


CSS The transition Property Style Sheet

 div{

    width:100px;

    height:100px;

    background-color: red;

    transition:width 2s;

}

div:hover{

    width:300px;

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...