bulrush

CSSTransition1

Jul 15th, 2026
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.36 KB | Software | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- comment -->
  5.     <title>CSS Anim ch 5</title>
  6.     <meta charset="UTF-8"> <!-- Required to show emojis -->
  7.     <meta name="viewport" content="width=device-width, initial-scale=1">
  8.     <meta name="keywords" content="HTML, CSS, Javascript">
  9.     <meta name="description" content="Learn HTML">
  10.     <meta name="author" content="[email protected]">
  11.     <!-- link rel="stylesheet" href="style1.css" -->
  12.     <style>
  13.       * {
  14.         box-sizing: border-box;
  15.         margin: 8px;
  16.         }
  17.       body {
  18.         font-family: "Roboto", sans-serif;
  19.         background-color: rgb(209, 207, 207);
  20.         }
  21.       .heading {
  22.         /* Do the transition over time. */
  23.         transition-property: font-size;
  24.         transition-duration: 0.5s;
  25.         transition-delay: 1s;
  26.         transition-timing-function: ease-in;
  27.         font-size: 20px;
  28.       }
  29.       .heading:hover {
  30.         color: rgb(9, 107, 20);
  31.         font-size: 28px;
  32.         letter-spacing: 5px;
  33.         /* border-top: 4px dotted red; */
  34.         text-shadow: 5px 5px 3px rgb(228, 242, 26);
  35.       }
  36.     </style>
  37. </head>
  38. <body>
  39.   <h1 class="heading">Hover over me</h1>
  40.   <div>VSC v1.119 on Windows 11 using Live Server extension in VSC. So I can test the web page in Live Server in another browser window.</div>
  41.  
  42.  
  43. </body>
  44.     <script>
  45.  
  46.     </script>
  47. </html>
  48.  
Tags: CSS
Advertisement
Add Comment
Please, Sign In to add comment