jamessessford / tailwindcss-ripple

Ripple effect (materialize) for Tailwindcss
MIT License
66 stars 3 forks source link

Smoother/slower transition? #9

Closed rjworks closed 3 years ago

rjworks commented 3 years ago

Is there a way to slower/smoothen the speed of the effect? I find it a bit too fast

jamessessford commented 3 years ago

Hey!

There isn't currently but it's probably something I can expose as a config option if that would help?

rjworks commented 3 years ago

That would be awesome thanks

jamessessford commented 3 years ago

Sweet, I'll try and take a look at it over the next couple days,

Cheers!

jamessessford commented 3 years ago

Hey!

So this looks totally doable but wanted to sound you out about how you think this should be approached:

  1. I can expose a config option just for timing; You'd only be able to set how long the transition takes (with the current as default)
  2. I expose the config option as a string and you'd have full control over the transition that's assembled (with the current as default)

Cheers!

rjworks commented 3 years ago

I think option 2 is better

jamessessford commented 3 years ago

I thought so too! I've updated the script now, if you want to update a package.json file to point to the main branch you'll be abl

jamessessford commented 3 years ago

Didn't mean to close the issue off! I hit the wrong button.

I've updated the script now and updated the readme. If that covers what you were looking for I'll release the code :)

rjworks commented 3 years ago

thank you