TechsMoon

  • News
  • How To
  • Apps for PC
  • Mobile Apps
  • WordPress
  • Windows
  • Write For Us

Button Hover Effect

April 29, 2021 By Naruto Singh Leave a Comment | Last Updated April 29, 2021

HTML File: (index.html)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Button Hover Effect</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <a href="#">Button</a>
</body>
</html>

CSS File: (style.css)

body
{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
a
{
    position: relative;
    padding: 8px 30px;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 20px;
    border: 2px solid #000;
    transition: 0.5s;
}
a:hover
{
    color: #fff;
}
a::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width:50%;
    height: 100%;
    background: #000;
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.5s;
    transform-origin: left;
}
a:hover::before
{
    
    transform: scaleX(1);
    transition: transform 0.5s;
    transform-origin: right;
}
a::after
{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width:50%;
    height: 100%;
    background: #000;
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.5s;
    transform-origin: right;
}
a:hover::after
{
    
    transform: scaleX(1);
    transition: transform 0.5s;
    transform-origin: left;
}

Source Code:

index.htmlDownload
style.cssDownload

Filed Under: Button, CSS Effects, Hover Effects Tagged With: front end, frontend developer, hover, web, web development, webdesign


Card Hover Effects HTML CSS

April 16, 2021 By Naruto Singh Leave a Comment | Last Updated April 16, 2021

HTML File: (index.html)

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>CSS Card Hover Effects</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="container">
      <div class="card">
        <div class="face face1">
          <div class="content">
            <h2>Lorem ipsum dolor sit amet</h2>
            <p>
            consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
            </p>
          </div>
        </div>
        <div class="face face2">
          <h2>01</h2>
        </div>
      </div>

      <div class="card">
        <div class="face face1">
          <div class="content">
            <h2>Lorem ipsum dolor sit amet</h2>
            <p>
            consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
            </p>
          </div>
        </div>
        <div class="face face2">
          <h2>02</h2>
        </div>
      </div>

      <div class="card">
        <div class="face face1">
          <div class="content">
            <h2>Lorem ipsum dolor sit amet</h2>
            <p>
            consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
            </p>
          </div>
        </div>
        <div class="face face2">
          <h2>03</h2>
        </div>
      </div>

    </div>
  </body>
</html>

CSS File: (style.css)

body
{
  margin: 0;
  padding: 0;
  display:flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(45deg,#24006b,#f42f8c);
}

.container
{
  width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
  grid-gap:15px;
  margin: 0 auto;
}

.container .card
{
  position: relative;
  width: 300px;
  height: 400px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 15px 60px rgba(0,0,0,0.5);
}

.container .card .face
{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .card .face.face1
{
  box-sizing: border-box;
  padding: 20px;
}
.container .card .face.face1 h2
{
  margin: 0;
  padding: 0;
}

.container .card .face.face2
{
  background: #111;
  transition: 0.5s;
}
.container .card:nth-child(1) .face.face2
{
  background: linear-gradient(45deg,#3503ad,#f7308c);
}
.container .card:nth-child(2) .face.face2
{
  background: linear-gradient(45deg,#ccff00,#09afff);
}
.container .card:nth-child(3) .face.face2
{
  background: linear-gradient(45deg,#e91e63,#ffeb3b);
}
.container .card:hover .face.face2
{
  height: 60px; 
}
.container .card .face.face2::before
{
  content: '';
  position: absolute;
  top:0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,.1);
}
.container .card .face.face2 h2
{
  margin: 0;
  padding: 0;
  font-size: 10em;
  color: #fff;
  transition: 0.5s;
  text-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.container .card:hover .face.face2 h2
{
  font-size: 2em;
}

Source Code:

Download

Filed Under: Cards, CSS Effects, Hover Effects Tagged With: card, css, developer, effects, hover, html, web, web developer, webdesign, website

CSS Skewed Border Creative Box Border Hover Effects

April 15, 2021 By Naruto Singh Leave a Comment | Last Updated April 15, 2021

HTML File: (index.html)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Creative Box Border Hover Effects</title>
    <link rel="stylesheet" type="text/CSS" href="style.css">
</head>
<body>
    <div class="container">
        <div class="box">
            <div class="content">
                <h2>01</h2>
                <h3>Service One</h3>
                <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatum molestiae deserunt repellat. </p>
                <a href="#"> Read More</a>
            </div>
        </div>

        <div class="box">
            <div class="content">
                <h2>02</h2>
                <h3>Service Two</h3>
                <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatum molestiae deserunt repellat. </p>
                <a href="#"> Read More</a>
            </div>
        </div>

        <div class="box">
            <div class="content">
                <h2>03</h2>
                <h3>Service Three</h3>
                <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatum molestiae deserunt repellat. </p>
                <a href="#"> Read More</a>
            </div>
        </div>

        <div class="box">
            <div class="content">
                <h2>04</h2>
                <h3>Service Four</h3>
                <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatum molestiae deserunt repellat. </p>
                <a href="#"> Read More</a>
            </div>
        </div>
    </div>
</body>
</html>

CSS File: (style.css)

body
{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #060c21;
}

.container
{
    position: relative;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    grid-template-rows: auto;
    grid-gap: 0 40px;
}

.container .box
{
    position: relative;
    height: 400px;
    background: #060c21;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.container .box::before
{
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    transform: skew(2deg,2deg);
    z-index: -1;
}

.container .box:nth-child(1)::before
{
    background: linear-gradient(315deg,#ff0057,#e64a19);
}
.container .box:nth-child(2)::before
{
    background: linear-gradient(315deg,#89ff00,#00bcd4);
}
.container .box:nth-child(3)::before
{
    background: linear-gradient(315deg,#e91e63,#5d02ff);
}
.container .box:nth-child(4)::before
{
    background: linear-gradient(315deg,#ff0000,#ffc107);
}

.container .box::after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255,255, 255, 0.05);
    pointer-events: none;
}
.content
{
    position: relative;
    padding: 20px;
    transform: translateY(40px);
}

.box .content h2
{
    position: absolute;
    top: -60px;
    right: 20px;
    margin: 0;
    padding: 0;
    font-size: 10em;
    color: rgba(255,255,255,0.05);
    transition: 0.5s;
}

.box:hover .content h2
{
    top: -140px;
}

.box .content h3
{
    margin: 0 0 10px;
    padding: 0;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.box .content p
{
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 16px;
}

.box .content a
{
    position: relative;
    margin: 20px 0 0;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #fff;
    display: inline-block;
    color: #fff;
    transition: 0.5s;
    transform: translateY(-40px);
    opacity: 0;
    visibility: hidden;
}

.box:hover .content a
{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.box .content a:hover
{
    color: #000;
    background: #fff;
}

Source Code:

Download

Filed Under: Animtion, Border, CSS Effects, Skewed Tagged With: code, coder, coding, css, developer, html, java, javascript, php, programmer, programming, python, ui, web, webdesign, webdesigner, webdeveloper, webdevelopment, website

What’s New

  • [Solved] Windows Modules Installer Worker High CPU and Disk Usage Error In Windows 10
  • Solve APC Index Mismatch In Windows
  • Windows 11 Release Date of 2021, Features, Concepts And Latest News You Need to Know
  • Add Star Rating Rich Snippets To WordPress Website Without Plugin
  • Download Latest Unacademy App for PC – For Windows 10/8/8.1/7
  • How to change Hathway WiFi Password?
  • [Solved ] The site is experiencing technical difficulties : WordPress Error
  • How to Turn On Bluetooth on Windows 10 – Fix all Problems
  • [Solved] 3 Best Ways To Solve IRQL_NOT_LESS_OR_EQUAL BSOD Error On Windows 10
  • [Solved] DNS Server is Not Responding or Unavailable Error on Windows 10

Handcrafted with
© Copyright 2019-2020 TechsMoon
Privacy Policy | Contact Us | Disclaimer | Sitemap

  • News
  • How To
  • Apps for PC
  • Mobile Apps
  • WordPress
  • Windows
  • Write For Us