Re:Show HN: Releasing my first real open source project – Ca...
by amarcus on Thursday January 16, 2014 @09:32PM
(#7073931)
It would be good for it to support animations (fade in/out, slide up/down etc...).
[ Parent
| on HN ]
Re:Show HN: Releasing my first real open source project – Ca...
by jbranchaud on Thursday January 16, 2014 @09:36PM
(#7073947)
It already supports fading in and out with CSS animations. I was thinking of adding slide up/down animations, but am not sure of a good way to implement this.
Re:Show HN: Releasing my first real open source project – Ca...
by lylepstein on Friday January 17, 2014 @02:14AM
(#7074683)
Use CSS transforms. Unlike absolute positioning, percentages with a transform bases the resulting value off the transformed element's size. So something like this:
figure figurecaption {
transition: all 0.4s;
transform: translateY(100%);
}
figure:hover figurecaption { transform: none; }
Will get you the effect you want.