
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
@designbycode/tailwindcss-text-glitch
Advanced tools
The Tailwind CSS plugin generates a glitch effect on text elements.
To use this plugin, you need to install it via pnpm, npm or yarn.
pnpm add -D @designbycode/tailwindcss-text-glitch
npm install --save-dev @designbycode/tailwindcss-text-glitch
yarn add -D @designbycode/tailwindcss-text-glitch
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"),
],
};
The plugin generates several utility classes for applying text glitch effects.
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>
Key | Value | Full Class |
---|---|---|
fast | 1s | .text-glitch-duration-fast |
normal | 3s | .text-glitch-duration-normal |
slow | 5s | .text-glitch-duration-slow |
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",
},
},
};
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>
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.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Tailwindcss utilities for text glitch
The npm package @designbycode/tailwindcss-text-glitch receives a total of 2 weekly downloads. As such, @designbycode/tailwindcss-text-glitch popularity was classified as not popular.
We found that @designbycode/tailwindcss-text-glitch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.