Implementing long shadow of text in less in CSS3

Implementing long shadow of text in less in CSS3

This article mainly introduces how to implement long text shadow in CSS3 LESS, and shares it with you. The details are as follows:

question

To achieve the following effect

Main knowledge points

Font shadow in css text-shadowless

Loops and merge code in syntax

<div class="long-shadow">豮艸芔茻</div>
 .loop(@counter) when (@counter > 0) {
    .loop((@counter - 1));
    text-shadow+: (1px * @counter) (1px * @counter) #2d585a;
  }
 .long-shadow{
    overflow: hidden;
    background-color: #5f9ea0;
    width:800px;
    height: 160px;
    line-height: 160px;
    text-align: center;
    letter-spacing: 80px;
    color: #fff;
    font-size: 100px;
    .loop(200);
  }

This is the end of this article about how to implement long shadow of text in less in CSS3. For more relevant content about long shadow of text in less, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  Beginner's guide to building a website ⑥: Detailed usage of FlashFXP

>>:  About if contains comma expression in JavaScript

Recommend

Detailed explanation of Socket (TCP) bind from Linux source code

Table of contents 1. A simplest server-side examp...

Analysis and solution of MySQL connection throwing Authentication Failed error

[Problem description] On the application side, th...

Tutorial on installing Ubuntu 20.04 and NVIDIA drivers

Install Ubuntu 20.04 Install NVIDIA drivers Confi...

Detailed explanation of the use of Vue Smooth DnD, a draggable component of Vue

Table of contents Introduction and Demo API: Cont...

Example of Html shielding right-click menu and left-click typing function

Disable right-click menu <body oncontextmenu=s...

Docker uses nextcloud to build a private Baidu cloud disk

Suddenly, I needed to build a private service for...

MySQL sorting principles and case analysis

Preface Sorting is a basic function in databases,...

9 Practical CSS Properties Web Front-end Developers Must Know

1. Rounded Corners Today's web designs are con...

How to implement variable expression selector in Vue

Table of contents Defining the HTML structure Inp...

Sample code for implementing mysql master-slave replication in docker

Table of contents 1. Overview 1. Principle 2. Imp...

Exploration and correction of the weird behavior of parseInt() in js

Background: I wonder if you have noticed that if ...