Patterned Text Effect

Hello, guys in this tutorial we will create a patterned text effect using HTML & CSS.

First we need to create two files index.html and style.css then we need to do code for it.

Patterned Text Effect Step:1

Add below code inside index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Patterned Text Effect | CSS Text Effects | CSS Tutorial</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta https-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="style.css" />
    <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet">
  </head>
  <body>
    <h2>Stackfindover</h2>
  </body>
</html>

Patterned Text Effect Step:2

Then we need to add code for style.css which code i provide in below screen.

* {
  padding: 0;
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #4b00ff;
}
h2 {
    font-size: 150px;
    background: repeating-linear-gradient(
        130deg, transparent 0px,
        transparent 6px, 
        white 7px, 
        white 10px ),
    repeating-linear-gradient(
        45deg, transparent 0px,
        transparent 6px, 
        white 7px, 
        white 10px );
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-stroke: 1px white;
}

Patterned Text Effect Output:

Leave a Comment