2

Motivative | CSS |

 2 years ago
source link: https://codepen.io/gambhirsharma/pen/abVPxvO
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.

Pen Settings

HTML Preprocessor

Add Class(es) to <html>

Stuff for <head>

0 unsaved changes
xxxxxxxxxx
<div class="canvas">
  <div class="gradient-txt">
    THINK <i>Fully</i> <br>
    NETWORK <i>well</i> <br>
    EXERCISE <i>daily</i> <br>
    EAT <i>healthy</i><br>
    WORK <i>hard</i><br>
    STAY <i>strong</i><br>
    BUILD <i>faith</i><br>
    WORRY <i>less</i><br>
    READ <i>more</i><br>
    BE <i>happy</i><br>
    VOLUNTEER <i>freely</i><br>
    RELAX <i>often</i><br>
    LOVE <i>always</i><br>
    LIVE <i>forever</i><br>
  </div>
</div>

CSS (SCSS)

CSS (SCSS)

@import url("https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@300;400&display=swap");
@mixin flexCenter {
  display: flex;
  align-items: center;
  justify-content: center;
}
body {
  height: 100vh;
  overflow: hidden;
  @include flexCenter;
  marign: 0px;
  padding: 0px;
  box-sizing: border-box;
  background: linear-gradient(-45deg, #29abe2, #ed1e79, #f15a24);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  .canvas {
    background: #202020;
    height: 520px;
xxxxxxxxxx

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK