Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tailwind-scroll-behavior
Advanced tools
This plugin generates scroll-behavior classes.
A scroll-smooth
and scroll-auto
class will be created.
It is recommended that you use scroll-smooth
in combination with Tailwind's motion-safe
variant.
This will only enable smooth scrolling for users who have not specified they prefer reduced motion.
Add to your project via:
# Install using npm
npm install -D tailwind-scroll-behavior
# Install using yarn
yarn add -D tailwind-scroll-behavior
Add it to the plugins array of your Tailwind config.
plugins: [
require('tailwind-scroll-behavior')(), // no options to configure
]
By default, this plugin works with the motion-safe
and motion-reduce
variants. However, you can customise the
variants for the plugin, by adding to the variants section of your Tailwind config.
variants: {
scrollBehavior: ['motion-safe', 'motion-reduce', 'responsive']
}
This project is licensed under the MIT License.
FAQs
Tailwind plugin to create scroll behavior classes
We found that tailwind-scroll-behavior 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.