Press "Enter" to skip to content

Cool 3D Typography Animations Made with CSS & Javascript | ztext.js

ztext.js, easy to implement, 3D printing for the web. It works with every font. This JS is a great JavaScript library for creating interactive 3D printing using the Transform Style property CSS3.

Not just text, but the library also supports images, SVGs, emojis, and even iconic font.

Minimalist, Modern, Simple is an Open-Source Palm Tree CSS Library

How to make use of it:

1. Download the package and load the ztext.min.js script within the doc.

<script src="ztext.min.js"></script>

2. Attach the function to the goal text and config the impact with the next parameters:

<h2>
  <span class="demo">CSS</span>
  <span class="demo">WCF</span>
</h2>
var ztxt = new Ztextify(".demo", {
    depth: "1rem",
    direction: "both",
    event: "none",
    eventRotation: "30deg",
    eventDirection: "default",
    fade: false,
    layers: 10,
    perspective: "500px",
    z: true,
});

3. You also can apply the impact to every character of your text utilizing data-z-OPTION attributes:

<h2>
  <span data-z data-z-layers="3" data-z-depth="0.5em">CSS</span>
</h2>

4. Apply the impact of non-text components like photos, emoji, icons, and many others.

<h2>
  <span data-z data-z-layers="3" data-z-depth="0.5em">
    // Add Image Here
  </span>
</h2>

5. Apply extra CSS classes to the impact.

.z-text {
  transform: rotateX(15deg) rotateY(-30deg);
}

.z-layer:not(:first-child) {
   color: #455a64;
}

Create 3D Interactive Typography, text Plugin/Github


See Demo And Download

Official Website(bennettfeely): Click Here

This superior jQuery/javascript plugin is developed by bennettfeely. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.