Topic: Rotating Cards with Cascading Cards
xardonik answered 8 years ago
<section id="products" class="text-center wow bounceIn" data-wow-delay="0.2s">
<!--Card 1-->
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card-wrapper">
<div id="card-1" class="card-rotating effect__click">
<!--Front Side-->
<div class="face front" >
<div class="card card-cascade narrower" >
<!--Card image-->
<div class="view overlay hm-white-slight ">
<img src="./img/image.jpg" class="img-fluid" alt="">
<a>
<div class="mask waves-effect waves-light"></div>
</a>
</div>
<!--/.Card image-->
<!--Card content-->
<div class="card-block">
<h5 class="red-text"><i class="fa fa-line-chart"></i> Classic</h5>
<!--Title-->
<h4 class="card-title">Learn </h4>
<!--Text-->
<p class="card-text">Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p>
<div class="smooth-scroll ">
<a class="btn btn-primary rotate-btn " data-card="card-1">Quick Facts</a>
<a href="#pop" class=" btn btn-primary" data-offset="200">More Information</a>
</div>
<!-- <a class="rotate-btn" data-card="card-1"><i class="fa fa-repeat"></i> Click here to rotate</a> -->
</div>
</div>
</div>
<!--/.Front Side-->
<!--Back Side-->
<!--Back Side-->
<div class="face back">
<div class="card" style="height: inherit;">
<ul style="padding: 20px">
<li style="padding-bottom:15px"> Chocolate cake cake jelly beans topping jujubes lollipop fruitcake tart carrot cake. Chocolate cake marshmallow liquorice. Marzipan halvah donut. </li>
<li style="padding-bottom:15px"> Muffin caramels jelly beans chocolate soufflé. Cake marzipan carrot cake bear claw cookie. Gummies gummies chocolate sweet chocolate biscuit cupcake tootsie roll fruitcake. </li>
<li style="padding-bottom:15px"> Fruitcake chocolate bonbon caramels apple pie powder toffee topping. Bonbon toffee jelly-o. Ice cream cotton candy pudding powder jelly-o.</li>
</ul>
<a class="rotate-btn" data-card="card-1"><i class="fa fa-undo"></i> Click here to rotate back</a>
</div>
</div>
<!--/.Back Side-->
<!--/.Back Side-->
<!--/.Card content-->
</div>
</div>
</div>
<!--/.Card 1-->
<!--Card 2-->
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card-wrapper">
<div id="card-2" class="card-rotating effect__click">
<!--Front Side-->
<div class="face front">
<div class="card card-cascade narrower">
<!--Card image-->
<div class="view overlay hm-white-slight ">
<img src="./img/image2.jpg" class="img-fluid" alt="">
<a>
<div class="mask waves-effect waves-light"></div>
</a>
</div>
<!--/.Card image-->
<!--Card content-->
<div class="card-block">
<h5 class="red-text"><i class="fa fa-pie-chart"></i> Feature Rich Platform</h5>
<!--Title-->
<h4 class="card-title">Learn <b><i>Everything </b></i>About </h4>
<!--Text-->
<p class="card-text">Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi.</p>
<div class="smooth-scroll ">
<a class="btn btn-primary rotate-btn" data-card="card-2">Quick Facts</a>
<a href="#cax" class="btn btn-primary" data-offset="200">More Information</a>
</div>
</div>
</div>
</div>
<!--/.Front Side-->
<!--Back Side-->
<div class="face back" >
<div class="card" style="height: inherit">
<ul style="padding: 20px">
<li style="padding-bottom:15px"> Muffin caramels jelly beans chocolate soufflé. Cake marzipan carrot cake bear claw cookie. Gummies gummies chocolate sweet chocolate biscuit cupcake tootsie roll fruitcake. </li>
<li style="padding-bottom:15px"> Fruitcake chocolate bonbon caramels apple pie powder toffee topping. Bonbon toffee jelly-o. Ice cream cotton candy pudding powder jelly-o.</li>
<li style="padding-bottom:15px"> Dessert soufflé sesame snaps croissant sweet roll. Lemon drops fruitcake dessert gummi bears brownie powder sesame snaps topping chocolate bar. </li>
</ul>
<a class="rotate-btn" data-card="card-2"><i class="fa fa-undo"></i> Click here to rotate back</a>
</div>
</div>
<!--/.Back Side-->
<!--/.Card content-->
</div>
</div>
</div>
<!--Card 2-->
</div>
</section>
xardonik answered 8 years ago
Rafał Rogulski answered 8 years ago
@media screen and (max-width: 1200px) {
.card-wrapper {
height: 800px;
}
}
this code will work only when page width from 1px to 1200px because now you don't have any other queries for smaller resolution,
you can also change max-with to min-width wich will work only when page width is 1200px or higher.
Regards xardonik answered 8 years ago
Bartłomiej Malanowski staff pro premium answered 8 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No