
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
Tinymotion is a Vue.js animation library, that seamlessly works with Tailwind CSS.
Hover | Click | Trigger | Auto |
![]() |
![]() |
![]() |
![]() |
Switch | Grid | Shuffle | Loader |
![]() |
![]() |
![]() |
![]() |
npm i -S tinymotion
<template>
<Motion
:hover="[
'scale-100',
'scale-125 rotate-45',
'scale-100 rotate-0',
]"
:options="motion"
class="w-16 h-16"
/>
</template>
<script>
import Motion from 'tinymotion';
export default {
components: { Motion },
data() {
return {
motion: {
repeat: true, // infinite animation until stopped
rollback: true, // reverse animation until return to the first keyframe
instantRollback: true, // instantly return to the first keyframe
delay: 0, // delay before the start
stepDelay: 0, // delay between keyframes
factor: 1, // delay factor (number of steps to skip) before every step
skip: 0, // number of steps to skip before the first flip
duration: 600, // default duration. might be overridden by duration-{value} Tailwind class
ease: 'ease-in-out', // transition timing function
}
}
}
}
</script>
Triggers animation on hover. If rollback
option is enabled, the animation will start rolling back on mouse leave.
<template>
<Motion
:hover="[
'scale-100',
'scale-125 rotate-45',
'scale-100 rotate-0',
]"
class="w-16 h-16"
/>
</template>
Triggers animation on click. If rollback
option is enabled, the animation will start rolling back on mouse up.
<template>
<Motion
:click="[
'scale-100',
'scale-125 rotate-45',
'scale-100 rotate-0',
]"
class="w-16 h-16"
/>
</template>
Tinymotion supports external triggers. Once the trigger value is changed, the animation will fire. The next time the value is changed, the animation will stop.
<template>
<Motion
v-model="trigger"
:trigger="[
'scale-100',
'scale-125 rotate-45',
'scale-100 rotate-0',
]"
class="w-16 h-16"
/>
<button @click="trigger = !trigger">Animate</button>
</template>
<script>
import Motion from 'tinymotion';
export default {
components: { Motion },
data() {
return {
trigger: false,
}
}
}
</script>
This project is in the early development stage. If you want to help to improve this, you are welcome to create a PR.
FAQs
Tinymotion
We found that tinymotion 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.