Skip to main content

Page transition animation by javascript | JavaScript animation .

 

Page transition animation by javascript | JavaScript animation .







SOURCE CODE



HTML SOURCE_CODE:-


<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Hover animation</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <link rel='stylesheet' type='text/css' media='screen' href='style.css'>

</head>
<body>
    <div class="main-container">
        <button class="button">Hover over</button>
    </div>
</body>
</html>


CSS SOURCE_CODE:-



* {
    margin0;
    padding0;
    box-sizingcontent-box;
  }
  
  html,
  body {  
      width100%;
      height100%;
  } 
  
  .main-container {
      width100%;
      height100%;
      displayflex;
      justify-contentcenter;
      align-itemscenter;
      background-color#3091ec;
      color#070606;
  }
  
  .button {
    positionrelative;
    background-colortransparent;
    padding10px 20px;
    color#ffffff;
    bordernone;
    font-size1.9em;
    transformnone;
    cursorpointer;
  }
  
  .button:after {
    content"";
    height100%;
    widthcalc(100% + 20px);
    positionabsolute;
    top-2px;
    left-10px;
    border-top2px solid #fff;
    border-bottom2px solid #fff;
    transition2s;
  }
  
  .button:before {
    content:"";
    heightcalc(100% + 20px);
    width100%;
    positionabsolute
    top-10px;
    left-2px;
    border-left2px solid #fff;
    border-right2px solid #fff;
    transition3s;
  }
  
  .button:hover:before {
    transformrotateY(180deg);
  }
  
  .button:hover:after {
    transformrotateX(180deg);
  }





web design video My YOUTUBE channel




































Tags:  javascript,css,HTML,page transition,page transition tutorial,javascript tutorial,javascript page transition,smooth page transition,js page transition,js transition,smooth transition tutorial,page transition javascript,page transition css,gsap page transition,gsap animation,page transition effect,page transitions,javascript tutorials,Page transition animation by gsap,web designer,learn javascript,javascript for beginners,gsap

Comments

Popular posts from this blog

How to create Page transition animation by Greensock (gsap)?

 Create Page transition animation by Greensock (gsap) https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js SOURCE CODE HTML  SOURCE_CODE:- index .html 👇 <! DOCTYPE   html > < html > < head >      < meta   charset = 'utf-8' >      < meta   http-equiv = 'X-UA-Compatible'   content = 'IE=edge' >      < title >  index Page  </ title >      < meta   name = 'viewport'   content = 'width=device-width, initial-scale=1' >      < link   rel = 'stylesheet'   type = 'text/css'   media = 'screen'   href = 'main.css' >      </ head > < body >      < div   class = "header" >          < a   href = "#" >         ...

How To Make A Website Using HTML CSS & JavaScript | Planets Website Design Full Video

artspider designerhttps://www.youtube.com/channel/UCD10SZSEyZCFAR4DFx_uNyg How To Make A Website Using HTML CSS & JavaScript | Planets Website Design Full Video SOURCE CODE HTML  SOURCE_CODE:- index .html 👇 <!DOCTYPE html> <html> <head>     <meta charset='utf-8'>     <meta http-equiv='X-UA-Compatible' content='IE=edge'>     <title>PlanetBook Home Page</title>     <meta name='viewport' content='width=device-width, initial-scale=1'>     <link rel='stylesheet' type='text/css' media='screen' href='style2.css'>      </head> <body>     <div class="header">         <a href="#" class="logo">             <img src="img/planetbooklogo.png" alt="">            </a>            <div class="loc">      ...

Car Website Design Using HTML , CSS and GSAP | Page transition animation by gsap | artspider

               https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js SOURCE CODE HTML  SOURCE_CODE:- index .html 👇 <! DOCTYPE   html > < html > < head >      < meta   charset = 'utf-8' >      < meta   http-equiv = 'X-UA-Compatible'   content = 'IE=edge' >      < title > page demo </ title >      < meta   name = 'viewport'   content = 'width=device-width, initial-scale=1' >      < link   rel = 'stylesheet'   type = 'text/css'   media = 'screen'   href = 'style2.css' >    </ head > < body >      < div   class = "logo" >< p   id = "logoT" > CARO </ p ></ div >      < div   class = "cover" > < div   class = "maindi...