
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
tailwindcss-animate-from-to
Advanced tools
A Tailwind CSS plugin for creating custom animations using `from` and `to` keyframes.
A Tailwind CSS plugin for creating custom animations using from
and to
keyframes.
Install the plugin from npm:
npm install -D tailwindcss-animate-from-to
Then, add the plugin to your tailwind.config.js
file:
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
// ...
},
plugins: [
require("tailwindcss-animate-from-to"),
// ...
],
};
The plugin defines a from
and to
keyframe for the opacity
property, equivalent to:
@keyframes opacity {
from {
opacity: var(--tw-opacity-from);
}
to {
opacity: var(--tw-opacity-to);
}
}
.animate-opacity
: Enable the opacity
animation..opacity-from-{value}
: Sets the starting opacity (taken from theme(opacity) or arbitrary value)..opacity-to-{value}
: Sets the ending opacity.<div class="animate-opacity opacity-from-0 opacity-to-100">Hello, world!</div>
The plugin defines a from
and to
keyframe for the box-shadow
property, equivalent to:
@keyframes shadow {
from {
box-shadow: var(--tw-shadow-from);
}
to {
box-shadow: var(--tw-shadow-to);
}
}
.animate-shadow
: Enable the box-shadow
animation..shadow-from-{value}
: Sets the starting shadow (taken from theme(boxShadow) or arbitrary value)..shadow-to-{value}
: Sets the ending shadow.<div class="animate-shadow shadow-from-md shadow-to-lg">Hello, world!</div>
The plugin defines a from
and to
keyframe for the transform
property with transform functions: scale, rotate, translate, and skew, equivalent to:
@keyframes transform {
from {
transform: "translateX(var(--tw-translate-x-from, 0)) translateY(var(--tw-translate-y-from, 0)) rotate(var(--tw-rotate-from, 0)) skewX(var(--tw-skew-x-from, 0)) skewY(var(--tw-skew-y-from, 0)) scaleX(var(--tw-scale-x-from, 1)) scaleY(var(--tw-scale-y-from, 1))";
}
to {
transform: "translateX(var(--tw-translate-x-to, 0)) translateY(var(--tw-translate-y-to, 0)) rotate(var(--tw-rotate-to, 0)) skewX(var(--tw-skew-x-to, 0)) skewY(var(--tw-skew-y-to, 0)) scaleX(var(--tw-scale-x-to, 1)) scaleY(var(--tw-scale-y-to, 1))";
}
}
.animate-transform
: Enable the transform
animation. All variables are set to 0
(or 1
for scale)..translate-x-from-{value}
: Sets the starting translateX (taken from theme(translate) or arbitrary value)..translate-x-to-{value}
: Sets the ending translateX..translate-y-from-{value}
: Sets the starting translateY..translate-y-to-{value}
: Sets the ending translateY..rotate-from-{value}
: Sets the starting rotate (taken from theme(rotate) or arbitrary value)..rotate-to-{value}
: Sets the ending rotate..skew-x-from-{value}
: Sets the starting skewX (taken from theme(skew) or arbitrary value)..skew-x-to-{value}
: Sets the ending skewX..skew-y-from-{value}
: Sets the starting skewY..skew-y-to-{value}
: Sets the ending skewY..scale-x-from-{value}
: Sets the starting scaleX (taken from theme(scale) or arbitrary value)..scale-x-to-{value}
: Sets the ending scaleX..scale-y-from-{value}
: Sets the starting scaleY..scale-y-to-{value}
: Sets the ending scaleY.<div
class="animate-transform translate-x-from-0 translate-x-to-10 rotate-from-0 rotate-to-360"
>
Hello, world!
</div>
This project is licensed under the MIT license.
FAQs
A Tailwind CSS plugin for creating custom animations using `from` and `to` keyframes.
We found that tailwindcss-animate-from-to demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.