News for hackers. Stuff that matters.
Re:TiltShift.js - using jQuery & CSS3 to mimic tilt-shift ph... by arcatek on Tuesday September 04, 2012 @07:33AM (#4474097)
Why do you need jQuery ? Can't you use the :hover pseudo-class, along with CSS3 opacity transition on the mask ?
Re:TiltShift.js - using jQuery & CSS3 to mimic tilt-shift ph... by noeltock on Tuesday September 04, 2012 @07:36AM (#4474104)
Yeah, you definitely don't need jQuery if you're doing it image for image. I did it this way so that I had a method to quickly pass settings on and generate the necessary effects on the fly.
Re:TiltShift.js - using jQuery & CSS3 to mimic tilt-shift ph... by nchuhoai on Tuesday September 04, 2012 @07:35AM (#4474101)
i assume to read the data-values
Re:TiltShift.js - using jQuery & CSS3 to mimic tilt-shift ph... by tmcw on Tuesday September 04, 2012 @09:20AM (#4474403)
You can use .getAttribute() for data values without the $.
Re:TiltShift.js - using jQuery & CSS3 to mimic tilt-shift ph... by noeltock on Tuesday September 04, 2012 @09:26AM (#4474424)
Good point, thanks!