Card Animations
Bootstrap Card animations
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a 50% discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
get 50% discount on MDB5 PRO
Bootstrap card animations is a set of standard illusions of motions that can be applied to the Bootstrap cards to improve the user experience.
Vue live previewSee the following Bootstrap animations examples:
Card with share icon MDB Pro component
Click on the icon to launch the animation. You can customize animation by defining position
to 'top', 'left', 'right'. Horizontal sliding effect requires passing to sliding-card
additional parameter width
to maintain card's layout through animation. See API
tab for more information.
Rotating card - version 1 MDB Pro component
Click on the icon to launch the animation.
Rotating card - version 2 MDB Pro component
Click to rotate.
About me
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugiat tenetur odio suscipit non commodi vel eius veniam maxime?
Click here to rotate back
Card Animation - API
In this section you will find advanced information about the FlippingCard and SlidingCard components. You will learn which modules are required in this component, what are the possibilities of configuring the component, and what events and methods you can use in working with it.
Flipping Card
Bootstrap flipping card is a card animation that gives an element effect of
flipping to the other side upon the interaction. The Vue component is in
fact a wrapper taking in two cards (holding
face front
and face back
classes) and a flipped
boolean prop
responsible for rendering either side. This way you can apply your own
flip-firing logic wherever you like.
API Reference: Properties
Name | Type | Default | Description | Example |
---|---|---|---|---|
tag
|
String | 'div' |
Sets a tag of an element's wrapper |
<mdb-flipping-card tag="li"/>
|
innerTag
|
String | 'div' |
Sets element's tag |
<mdb-flipping-card innerTag="li"/>
|
flipped
|
Boolean | false |
Cotrols which side of the card is showing |
<mdb-flipping-card :flipped="isFlipped"/>
|
innerClass
|
String, Array | '' |
Binds class names to inner element |
<mdb-flipping-card innerClass="custom-inner-class"/>
|
outerClass
|
String, Array | '' |
Binds class names to outer element |
<mdb-flipping-card outerClass="custom-outer-class"/>
|
Sliding Card
API Reference: Properties
Name | Type | Default | Description | Example |
---|---|---|---|---|
show
|
Boolean | false |
Controls display of an element |
<mdb-sliding-card :show="isShown"/>
|
direction
|
String | "bottom" |
Sets direction of the animation - available options are: top, bottom, left, right |
<mdb-sliding-card direction="top"/>
|
width
|
Number |
|
If we're using horizontal animation (direction="left" or direction="right" ) we
need to add width property with value in pixels in order to prevent content from wrapping. |
<mdb-sliding-card direction="left" :width="220" />
|