schantz logo with hover effect

In this example below you will see how to do a schantz logo with hover effect with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Kunuk Nykjær, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Kunuk Nykjær ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>schantz logo with hover effect</title>
  <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

<base target="_blank">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

  
      <style>
      /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */
      html, body {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin-top: 40px;
  text-align: center;
}
@media (min-width: 500px) {
  html, body {
    font-size: 50px;
  }
}
@media (min-width: 1100px) {
  html, body {
    font-size: 120px;
  }
}

a {
  text-decoration: none;
}

.logo {
  transition: all 1s;
  display: inline-block;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-weigth: 700;
}
.logo:hover {
  color: #FF8600;
}
.logo:hover .icon {
  transform: translateX(-0.5em) scaleX(-1);
}
.logo > .first {
  display: inline-block;
}
.logo > .icon {
  transition: all 0.5s;
  position: relative;
  top: 0.09em;
  margin-left: -0.7em;
  margin-right: -0.8em;
  display: inline-block;
}
.logo > .icon > .triangle {
  transition: all 0.5s;
  position: relative;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5em 0 0 1em;
  border-color: transparent transparent transparent #FF8600;
  transform: rotate(29.7deg);
}
.logo > .icon > .triangle-small {
  transition: all 0.5s;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.25em 0 0 0.5em;
  border-color: transparent transparent transparent #717171;
  transform: rotate(119.7deg);
  position: relative;
  left: -0.34em;
  top: -0.08em;
}
.logo > .last {
  display: inline;
}

    </style>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

</head>

<body>

  <a class="logo" href="http://www.schantz.com/">
  <div class="first">sch</div>
  <div class="icon">
    <div class="triangle"></div>
    <div class="triangle-small"></div>
  </div>
  <div class="last">ntz </div></a>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/kunukn/schantz-logo-with-hover-effect-raEdWo */
html, body {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin-top: 40px;
  text-align: center;
}
@media (min-width: 500px) {
  html, body {
    font-size: 50px;
  }
}
@media (min-width: 1100px) {
  html, body {
    font-size: 120px;
  }
}

a {
  text-decoration: none;
}

.logo {
  transition: all 1s;
  display: inline-block;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-weigth: 700;
}
.logo:hover {
  color: #FF8600;
}
.logo:hover .icon {
  transform: translateX(-0.5em) scaleX(-1);
}
.logo > .first {
  display: inline-block;
}
.logo > .icon {
  transition: all 0.5s;
  position: relative;
  top: 0.09em;
  margin-left: -0.7em;
  margin-right: -0.8em;
  display: inline-block;
}
.logo > .icon > .triangle {
  transition: all 0.5s;
  position: relative;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5em 0 0 1em;
  border-color: transparent transparent transparent #FF8600;
  transform: rotate(29.7deg);
}
.logo > .icon > .triangle-small {
  transition: all 0.5s;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.25em 0 0 0.5em;
  border-color: transparent transparent transparent #717171;
  transform: rotate(119.7deg);
  position: relative;
  left: -0.34em;
  top: -0.08em;
}
.logo > .last {
  display: inline;
}

Comments