I'm trying to figure out how the card swipe/flip effect was done as seen on this site: http://catalystconference.com/ (under the "Our Favorites" and similar sections). Can this be accomplished using only CSS?
相关问题
- Css animations - animation is slow and jiggles
- CSS Slider - Hover functionality rather than click
- Rotate more than 360 deg using css 3 matrix
- Flexbox align-self property not transitioning?
- How to make the animation smooth?
相关文章
- Why is a transition property on the placeholder ps
- Trigger animation on element click in pure CSS
- Css Transition on hover for child element
- css transition max-height back to 0 not working
- Are CSS3 properties like animate too CPU intensive
- Fixed position misbehaviour in IE11
- Is it possible to set different duration/delay for
- How to transition child when parent goes from disp
Don't rely on text-indent, because it forces the browser to actually render the negative space that you have specified. Instead, try using absolute positioning and left/top/bottom/right properties to help position (and subsequently reveal/hide) your hidden pane.
For your HTML, I have taken the liberty to create two panes in your
<div>
: a visible and a hidden one.CSS wise, the visible pane is positioned as is, but the hidden pane is positioned absolutely (but relative to its parent) that is 100% off from the top (therefore sits at the bottom of the parent container, but out of sight). The trick is to change the
top
property of the hidden pane when the parent is hovered, to bring it to the top. The animation is easily done with the CSS3 property:transition
.Here is my proof-of-concept fiddle: http://jsfiddle.net/teddyrised/TTv4q/2/