🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@designbycode/tailwindcss-text-glitch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@designbycode/tailwindcss-text-glitch

Tailwindcss utilities for text glitch

1.0.1
latest
Source
npm
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source
Title banner

Tailwind CSS Text Glitch

npm version npm NPM npm bundle size ts GitHub stars HitCount

NPM

The Tailwind CSS plugin generates a glitch effect on text elements.

📇 Table of Contents

Installation

To use this plugin, you need to install it via pnpm, npm or yarn.

Using pnpm

pnpm add -D @designbycode/tailwindcss-text-glitch

Using npm

npm install --save-dev @designbycode/tailwindcss-text-glitch

Using yarn

yarn add -D @designbycode/tailwindcss-text-glitch

Usage

Once the plugin is installed, you can enable it in your Tailwind CSS configuration file. Usually, this file is named tailwind.config.js.

module.exports = {
    // ...other configurations
    plugins: [
        // ...other plugins
        require("@designbycode/tailwindcss-text-glitch"),
    ],
};

Utilities

The plugin generates several utility classes for applying text glitch effects.

Applying Text-Glitch Effect

To make it work you only need to add the class of .text-glitch to you html. The rest off the classes is just modifiers.


<div class="text-glitch"></div>

Available duration values for glitch effect

KeyValueFull Class
fast1s.text-glitch-duration-fast
normal3s.text-glitch-duration-normal
slow5s.text-glitch-duration-slow

Configuration

The plugin allows you to customize the text-glitch by modifying the theme object in your Tailwind CSS configuration file.

// tailwind.config.js

module.exports = {
    // ...other configurations
    plugins: [
        // ...other plugins
        require("@designbycode/tailwindcss-text-glitch"),
    ],
    theme: {
        duration: {
            fast: "1s",
            normal: "3s",
            slow: "5s",
        },
    },
};

Example

Here's an example of how you can use the utility classes to apply text-glitch:


<div class="text-glitch">
    Glitch Effect
</div>

Change duration speed of effect by using duration modifiers.


<div class="text-glitch text-glitch-duration-slow">
    Glitch Effect
</div>

Contributing

Contributions to this plugin are welcome! If you encounter any issues, have feature requests, or want to improve the plugin, feel free to create a pull request or submit an issue on the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Claude Myburgh

Claude Myburgh

Acknowledgments

  • This plugin is inspired by the needs of web developers using Tailwind CSS.
  • Special thanks to the Tailwind CSS team for creating such an amazing framework.

Keywords

front-end

FAQs

Package last updated on 28 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts