Subir archivos
This commit is contained in:
@@ -10,10 +10,6 @@ $rebet_lottie_sources = array(
|
||||
'file' => 'slide-3.json',
|
||||
'images' => array( 80, 81, 82, 83, 84, 85, 86, 166, 88, 167, 90, 91, 92 ),
|
||||
),
|
||||
4 => array(
|
||||
'file' => 'slide-4.json',
|
||||
'images' => array( 93, 94, 95, 98, 100, 101, 102, 103, 104, 111, 112, 115, 116 ),
|
||||
),
|
||||
);
|
||||
|
||||
$rebet_lottie_data = array();
|
||||
@@ -166,11 +162,15 @@ foreach ( $rebet_lottie_sources as $slide_number => $lottie_source ) {
|
||||
<p>Vive la emoción del juego en tiempo real con dealers
|
||||
en vivo. ¡Sentirás que estás en Las Vegas!</p>
|
||||
</div>
|
||||
<div class="rebet-carousel__media rebet-carousel__media--lottie" aria-hidden="true">
|
||||
<div class="rebet-carousel__lottie" data-lottie-animation data-lottie-speed="1.5"></div>
|
||||
<?php if ( isset( $rebet_lottie_data[4] ) ) : ?>
|
||||
<script type="application/json" data-lottie-data><?php echo wp_json_encode( $rebet_lottie_data[4], JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT ); ?></script>
|
||||
<?php endif; ?>
|
||||
<div class="rebet-carousel__media rebet-carousel__media--casino" aria-hidden="true">
|
||||
<div class="rebet-casino-scene">
|
||||
<?php echo wp_get_attachment_image( 168, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__categories', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
<?php echo wp_get_attachment_image( 173, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__roulette', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
<?php echo wp_get_attachment_image( 170, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__phone', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
<?php echo wp_get_attachment_image( 169, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__card', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
<?php echo wp_get_attachment_image( 171, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__photo rebet-casino-scene__photo--one', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
<?php echo wp_get_attachment_image( 172, 'full', false, array( 'class' => 'rebet-casino-scene__asset rebet-casino-scene__photo rebet-casino-scene__photo--two', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
@@ -1106,6 +1106,90 @@ body { background:#000; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Casino slide: the phone and roulette stay fixed while the supporting cards float. */
|
||||
.rebet-features .rebet-carousel__media--casino {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.rebet-casino-scene {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
width: min(100%, 562px);
|
||||
height: auto;
|
||||
aspect-ratio: 680 / 580;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rebet-casino-scene::before {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: -6%;
|
||||
left: 3%;
|
||||
width: 94%;
|
||||
height: 96%;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
radial-gradient(circle at 9% 17%, rgba(255, 119, 30, 0.8) 0 5%, transparent 13%),
|
||||
radial-gradient(circle at 12% 84%, rgba(252, 91, 42, 0.65) 0 3%, transparent 10%),
|
||||
radial-gradient(ellipse at 51% 43%, rgba(255, 135, 40, 0.82) 0%, rgba(252, 70, 50, 0.42) 43%, transparent 73%);
|
||||
content: "";
|
||||
filter: blur(20px);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__asset {
|
||||
position: absolute;
|
||||
display: block;
|
||||
max-width: none;
|
||||
height: auto;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__categories {
|
||||
z-index: 2;
|
||||
top: 30.5%;
|
||||
left: 0;
|
||||
width: 34.6%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__roulette {
|
||||
z-index: 1;
|
||||
top: 25.3%;
|
||||
left: 45.6%;
|
||||
width: 59.4%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__phone {
|
||||
z-index: 3;
|
||||
top: 9.1%;
|
||||
left: 26.9%;
|
||||
width: 47.1%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__card {
|
||||
z-index: 4;
|
||||
top: 47.8%;
|
||||
left: 13.5%;
|
||||
width: 23.2%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__photo {
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__photo--one {
|
||||
top: 4.7%;
|
||||
left: 75.8%;
|
||||
width: 10.3%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__photo--two {
|
||||
top: 79%;
|
||||
left: 8.6%;
|
||||
width: 11.8%;
|
||||
}
|
||||
|
||||
.rebet-features .rebet-carousel__media--graphic {
|
||||
background:
|
||||
radial-gradient(circle at 62% 44%, rgba(252, 111, 39, 0.27), transparent 43%),
|
||||
@@ -1379,8 +1463,9 @@ body { background:#000; }
|
||||
}
|
||||
|
||||
.rebet-features .rebet-carousel__copy {
|
||||
box-sizing: border-box;
|
||||
min-height: 228px;
|
||||
padding: 0;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.rebet-features .rebet-carousel__copy h2 {
|
||||
@@ -1399,6 +1484,47 @@ body { background:#000; }
|
||||
border-radius: 0 0 23px 23px;
|
||||
}
|
||||
|
||||
.rebet-features .rebet-casino-scene {
|
||||
width: 298px;
|
||||
height: 254px;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__categories {
|
||||
top: 31%;
|
||||
left: -2%;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__roulette {
|
||||
top: 22%;
|
||||
left: 43%;
|
||||
width: 68%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__phone {
|
||||
top: 2%;
|
||||
left: 23%;
|
||||
width: 54%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__card {
|
||||
top: 48%;
|
||||
left: 8%;
|
||||
width: 27%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__photo--one {
|
||||
top: 4%;
|
||||
left: 78%;
|
||||
width: 13%;
|
||||
}
|
||||
|
||||
.rebet-casino-scene__photo--two {
|
||||
top: 77%;
|
||||
left: 5%;
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.rebet-challenge-card--back {
|
||||
top: 43px;
|
||||
}
|
||||
@@ -1461,6 +1587,10 @@ body { background:#000; }
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.rebet-features #rebet-feature-4 {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rebet-features .rebet-carousel__copy h2 {
|
||||
font-size: 34px;
|
||||
line-height: 37px;
|
||||
@@ -1479,10 +1609,46 @@ body { background:#000; }
|
||||
animation: rebet-card-float 4.6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.rebet-carousel__slide.is-active .rebet-casino-scene__categories {
|
||||
animation: rebet-casino-categories-drift 5.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.rebet-carousel__slide.is-active .rebet-casino-scene__card {
|
||||
animation: rebet-casino-card-float 4.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.rebet-carousel__slide.is-active .rebet-casino-scene__photo--one {
|
||||
animation: rebet-casino-photo-one-float 4.8s ease-in-out 0.35s infinite;
|
||||
}
|
||||
|
||||
.rebet-carousel__slide.is-active .rebet-casino-scene__photo--two {
|
||||
animation: rebet-casino-photo-two-float 5.2s ease-in-out 0.7s infinite;
|
||||
}
|
||||
|
||||
@keyframes rebet-card-float {
|
||||
0%, 100% { translate: 0 0; }
|
||||
50% { translate: 0 -8px; }
|
||||
}
|
||||
|
||||
@keyframes rebet-casino-categories-drift {
|
||||
0%, 100% { transform: translate3d(-5px, 0, 0); }
|
||||
50% { transform: translate3d(7px, -3px, 0); }
|
||||
}
|
||||
|
||||
@keyframes rebet-casino-card-float {
|
||||
0%, 100% { transform: translate3d(0, 3px, 0) rotate(-0.8deg); }
|
||||
50% { transform: translate3d(0, -9px, 0) rotate(0.8deg); }
|
||||
}
|
||||
|
||||
@keyframes rebet-casino-photo-one-float {
|
||||
0%, 100% { transform: translate3d(0, 4px, 0) rotate(1.2deg); }
|
||||
50% { transform: translate3d(5px, -8px, 0) rotate(-1.2deg); }
|
||||
}
|
||||
|
||||
@keyframes rebet-casino-photo-two-float {
|
||||
0%, 100% { transform: translate3d(2px, 2px, 0) rotate(-1deg); }
|
||||
50% { transform: translate3d(-5px, -8px, 0) rotate(1deg); }
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
Reference in New Issue
Block a user