Wednesday, December 22, 2021

Transform+The Transition()Method

 Transform+The Transition()Method


 <!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() Method</h1>

<p>The translate() method moves an element from its current position:</p>

<div>

    This div element is moved 50 pixels to the right, and 100 pixels down from its current position.</div>

</body>


</html>


CSS Transform+The Transition()Method Style

div{

  width:300px;

  height:100px;

  background-color: red;

  border: 1px solid black;

  transform: translate(50px,100px);

}

No comments:

Post a Comment

JavaScript Animated

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