-
Hi, I try to make a "read more" link with the icon on the right and add a behaviour when someone hover over the link I have created example code on tailwind play: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I figured this out after I submitted the post. I should use transition-all class instead of transition! |
Beta Was this translation helpful? Give feedback.
-
in your tailwind.config.js, add the following
Now you use the exact extension specified in your element.
|
Beta Was this translation helpful? Give feedback.
-
Hey! 👋 Not really a big deal in this (OP) specific scenario, but I thought I'd jump in and provide some unsollicited (and friendly!) feedback 🤗 When doing transition animations, it's always a good idea to try and stick to CSS properties that are cheap to animate, like a Here's an excellent article on the topic: https://web.dev/animations-overview/ I've created a new Play from the demo, with a few adjustments explained below the link: https://play.tailwindcss.com/x1GM5fsSzr I left the original code in a comment, so you can compare
Hope it helps! I realise the OP is already 6 months old, but this might help someone else stumbling upon this discussion thread 👍 |
Beta Was this translation helpful? Give feedback.
I figured this out after I submitted the post. I should use transition-all class instead of transition!