News for hackers. Stuff that matters.
Re:Show HN: CSSFX – Click-to-copy CSS effects by dchest on Wednesday May 08, 2019 @09:30AM (#19858615)
Took me some time to figure out that I should click slightly outside of the buttons to get the code (highlighting is barely visible on my MBP screen).
Re:Show HN: CSSFX – Click-to-copy CSS effects by dinkleberg on Wednesday May 08, 2019 @09:45AM (#19858738)
If you hadn't posted this comment I wouldn't have realized that even existed.

But to OP, thanks for making this. As someone who hates writing complicated CSS but loves good design, this is a great resource. I'm sure there will be haters as with most tools, but this will be useful for me.

Re:Show HN: CSSFX – Click-to-copy CSS effects by commandlinefan on Wednesday May 08, 2019 @04:08PM (#19862400)
I accidentally clicked and noticed it. Must agree this is pretty amazing, too.
Re:Show HN: CSSFX – Click-to-copy CSS effects by _bxg1 on Wednesday May 08, 2019 @11:06AM (#19859510)
Also, a couple of the effects only happen on click, not hover. Would be great to have better messaging about which is which (cursor change, a badge of some kind, or otherwise). Presumably the reason you have to click outside the button to see the code is that the click events get consumed - because some of the effects require clicking. This was actually how I figured out that some of them require clicking.
Re:Show HN: CSSFX – Click-to-copy CSS effects by jolaleye on Wednesday May 08, 2019 @08:58PM (#19864401)
You're right, this was exactly why. It has been fixed now though :) I've also added "input" to the input effects to make their function a bit more clear. Thanks for the feedback!
Re:Show HN: CSSFX – Click-to-copy CSS effects by kingludite on Thursday May 09, 2019 @12:28AM (#19865393)
it should have check boxes so that one can combine them.
Re:Show HN: CSSFX – Click-to-copy CSS effects by deathanatos on Wednesday May 08, 2019 @05:01PM (#19862893)
The highlighting is barely visible on anything.

Without hover: rgb(9, 8, 33)

With hover: rgb(13, 11, 38)¹

¹After blending. The hover actually adds rgba(24, 21, 55, .2) to the box.

Re:Show HN: CSSFX – Click-to-copy CSS effects by _eric on Wednesday May 08, 2019 @09:37AM (#19858663)
Yup, me too. I think clicking both on and around the elements should show the code behind that element.
Re:Show HN: CSSFX – Click-to-copy CSS effects by jolaleye on Wednesday May 08, 2019 @08:55PM (#19864391)
This was an admittedly lazy design choice. The reason it worked this way was so that input effects could be clicked without opening the modal. The issue has been fixed so that now all effects aside from inputs can be properly clicked :)
Re:Show HN: CSSFX – Click-to-copy CSS effects by underwater on Wednesday May 08, 2019 @10:59PM (#19864991)
This made it unusable on mobile. It's not possible to preview an effect without tapping, which means the code obscures the preview.
Re:Show HN: CSSFX – Click-to-copy CSS effects by tylfin on Wednesday May 08, 2019 @10:36AM (#19859169)
Yeah I was about to post that it didn't work on firefox...
Re:Show HN: CSSFX – Click-to-copy CSS effects by ausjke on Wednesday May 08, 2019 @10:30AM (#19859115)
Thank you, I almost gave up.

The CSS trick is great, but I have to say the usage of that site is non-intuitive at all.

Re:Show HN: CSSFX – Click-to-copy CSS effects by Cybernetic on Wednesday May 08, 2019 @05:04PM (#19862921)
Thanks for pointing this out... I was sure something was wrong with the site and it wasn't working - hover effects are 'invisible' on my MBP screen.
Re:Show HN: CSSFX – Click-to-copy CSS effects by andrewstuart on Wednesday May 08, 2019 @04:36PM (#19862652)
Yeah its really not obvious how to get the code - there should be a "show css" link under the button.
Re:Show HN: CSSFX – Click-to-copy CSS effects by rectangletangle on Wednesday May 08, 2019 @04:44PM (#19862726)
I found this true as well.

However, the actual effects are nice. I did notice some flashing with the "bubble" animation on Mobile Safari (probably a browser quirk). Though others like "slide" appear smooth and sleek.