"info card"
Bootstrap 3.0.0 Snippet by evarevirus

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="card-movie-wrapper card-movie-wrapper--centered">
<div class="card-movie-carousel">
<div class="card-movie card-movie--light card-movie--looper card-movie--active">
<div class="card-movie__content">
<div class="card-movie__title">Looper</div>
<div class="card-movie__details">
<span class="card-movie__details-item">2012</span>
<span class="card-movie__details-item">119 mins</span>
<ul class="card-movie__details-item card-movie__details-list">
<li>Action</li>
<li>Crime</li>
<li>Sci-fi</li>
</ul>
</div>
<!-- /.card-movie__details -->
<div class="card-movie__description">
<p>In 2074, when the mob wants to get rid of someone, the target is sent into the past, where a hired gun awaits·-·someone like Joe.</p>
</div>
<!-- /.card-movie__description -->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
html {
box-sizing: border-box;
}
body {
color: #676767;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 1.5;
}
*,
*:before,
*:after {
box-sizing: inherit;
line-height: inherit;
}
.card-movie__details:after, .card-movie__details-list:after {
clear: both;
content: '';
display: table;
}
.card-movie-wrapper {
box-shadow: 0px 0px 100px 25px rgba(0, 0, 0, 0.2);
height: 440px;
position: relative;
width: 840px;
}
.card-movie-wrapper:hover .card-movie-carousel {
-webkit-transition: all 250ms ease-in-out;
-moz-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
bottom: 60px;
right: 40px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// global vars
var players = [],
current = 0;
// YouTube iFrame API Ready
function onYouTubeIframeAPIReady() {
$('[data-trailer]').each(function() {
var player,
id = $(this).data('trailer');
$(this).html('<iframe id="player_' + id + '" src="https://www.youtube.com/embed/' + id + '?enablejsapi=1&autohide=1&showinfo=0&theme=light" frameborder="0" allowfullscreen></iframe>');
player = new YT.Player('player_' + id, {
events: {
'onStateChange': onPlayerStateChange
}
});
players.push(player);
});
}
// YouTube On Player State Change
function onPlayerStateChange(event) {
var player = players[current];
switch(event.data) {
case YT.PlayerState.ENDED:
player.stopVideo();
player.seekTo(0);
$('.card-movie--playing').removeClass('card-movie--playing');
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: