Advertisement
artur99

Cod IP hover filme

May 22nd, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.81 KB | None | 0 0
  1. Cod HTML generic pentru un movie:
  2.  
  3. <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
  4.     <div class="movies-data-show">
  5.         <div class="movie-image" style="background-image: url(/photo_url.jpg)"></div>
  6.         <div class="movie-info">
  7.             <div class="movie-name">
  8.                 <a href="/movies/3" style="font-size: 130%">Terminator 3</a>
  9.             </div>
  10.             <div class="movie-price">
  11.                 LEI 28.00
  12.             </div>
  13.             <div class="movie-book-now">
  14.                 <a href="/program/">
  15.                     <button class="movie-button-book-now">
  16.                         Book now
  17.                     </button>
  18.                 </a>
  19.             </div>
  20.         </div>
  21.     </div>
  22. </div>
  23.  
  24.  
  25. Pus într-un <div class="row">
  26.  
  27.  
  28.  
  29.  
  30. Cod CSS:
  31.  
  32. .movies-data-show {
  33.     background-position: top;
  34.     background-repeat: no-repeat;
  35.     background-color: #43425d;
  36.  
  37.     display: flex;
  38.     flex-direction: column;
  39.     flex-wrap: wrap;
  40.  
  41.     font-family: 'Source Sans Pro', sans-serif;
  42.     text-align: center;
  43.     box-shadow: 0 0 2px 1px rgba(150, 150, 150, 0.2);
  44.     position: relative;
  45.     overflow: hidden;
  46.     margin-bottom: 15px;
  47. }
  48. .movie-image {
  49.     width: 100%;
  50.     height: 350px;
  51.     background-size: cover;
  52.     background-position: center center;
  53. }
  54.  
  55. .movie-info {
  56.     padding: 10px;
  57.     padding-bottom: 14px;
  58.     background-color: #43425d;
  59.     position: absolute;
  60.     bottom: 0;
  61.     margin-bottom: -250px;
  62.     transition: .3s margin-bottom;
  63.     width: 100%;
  64. }
  65. .movie-image:before {
  66.     content: '';
  67.     display: block;
  68.     width: 100%;
  69.     height: 100%;
  70.     background: rgba(140, 140, 140, 0.2);
  71.     opacity: 0;
  72.     transition: .3s opacity;
  73. }
  74. .movies-data-show:hover .movie-info {
  75.     margin-bottom: 0;
  76. }
  77. .movies-data-show:hover .movie-image:before {
  78.     opacity: 1;
  79. }
  80.  
  81. .movie-name {
  82.     text-overflow: ellipsis;
  83.     white-space: nowrap;
  84.     overflow: hidden;
  85.     width: 100%;
  86.  
  87.     color: white;
  88.     font-family: 'Source Sans Pro', sans-serif;
  89.     font-weight: bold;
  90.     font-size: 14px;
  91. }
  92.  
  93. .movie-price {
  94.     color: white;
  95.     font-size: 18px;
  96.     text-align: center;
  97.     padding-bottom: 5px;
  98. }
  99.  
  100. .movie-button-book-now {
  101.     color: white;
  102.     background-color: #8f8dae;
  103.     border-radius: 5px;
  104.     padding: 10px 40px;
  105.     border: none;
  106. }
  107.  
  108. .movie-button-book-now:disabled {
  109.     background-color: #5C9AFF;
  110. }
  111.  
  112. .movie-button-book-now:active {
  113.     background-color: #ffffff !important;
  114. }
  115.  
  116. .page-item.active .page-link {
  117.     z-index: 1;
  118.     color: #fff;
  119.     background-color: #dedee7 !important;
  120.     border-color: #dedee7 !important;
  121. }
  122.  
  123. .movie-info a {
  124.     color: #fff;
  125. }
  126.  
  127. .movie-info a:hover {
  128.     color: #fff;
  129.     text-decoration: none;
  130. }
  131.  
  132. .movie-button-book-now:hover{
  133.     background-color: #dedde7 !important;
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement