4

day 30 today we going to design a button with an awesome hover effect.

 2 years ago
source link: https://codepen.io/atechajay/pen/WNZpLMQ
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Pen Settings

HTML Preprocessor

Add Class(es) to <html>

Stuff for <head>

0 unsaved changes
xxxxxxxxxx
<body>
    <button>
      hover me
      <span class="first"></span>
      <span class="second"></span>
      <span class="third"></span>
      <span class="fourth"></span>
    </button>
  </body>
xxxxxxxxxx
    <title>day 30</title>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: sans-serif;
        background: #000;
      }
      button {
        border: none;
        padding: 20px 40px;
        font-size: 44px;
        position: relative;
        background: transparent;
        color: #ffa500;
xxxxxxxxxx
999px

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK