Show HN: cta.js – Animate your 'action-to-effect' paths
kushagragour.in
kushagragour.in
Then I discovered by reading the comments that this is because it doesn't work correctly in my browser.
Normally, I would advise you to prominently display information about where it works... except that in today's world, not being cross-browser makes a library like this essentially useless. Instead, I would suggest not bothering to publicize this until you have it working in all major browsers.
Looks like only CSS transition and animation is special cased for WebKit but that's been unprefixed in Firefox since years back.
https://hacks.mozilla.org/2012/07/aurora-16-is-out/
Edit:
Seems like getComputedStyle is buggy in Firefox?
« window.getComputedStyle($0).background
» ""
« window.getComputedStyle($0).backgroundColor
» "rgb(74, 144, 226)"
« window.getComputedStyle($0).backgroundImage
» "none"
$0 is the currently inspected element, in this case: .js-modal-2Edit2:
Possibly "works as intended"?:
> getPropertyCSSValue is required to return null for these, and we implement getPropertyValue in terms of getPropertyCSSValue.
https://bugzilla.mozilla.org/show_bug.cgi?id=889091
If so, the fix would be to use the actual attributes rather than the composite attribute.
I do really like the sidebar pop-out. I've never seen that in jquery before - or perhaps missed it in the docs. Good job.
I could not agree more!
Well done - and thank you, looking forward to cross browser version!