Lotties de banner principal y sliders

This commit is contained in:
Gabriel
2026-09-29 01:32:50 -06:00
parent 1a0c1728e8
commit 51f612d861
203 changed files with 1213 additions and 78 deletions
+141 -19
View File
@@ -13,6 +13,26 @@ $rebet_lottie_sources = array(
);
$rebet_lottie_data = array();
$rebet_hero_lottie_path = get_template_directory() . '/lottie-tmp/social-casino.json';
$rebet_hero_lottie_url = is_readable( $rebet_hero_lottie_path )
? get_template_directory_uri() . '/lottie-tmp/social-casino.json'
: '';
$rebet_hero_foreground_path = get_template_directory() . '/lottie-tmp/social-casino-foreground-cleaned.png';
$rebet_hero_foreground_url = is_readable( $rebet_hero_foreground_path )
? get_template_directory_uri() . '/lottie-tmp/social-casino-foreground-cleaned.png'
: '';
$rebet_hero_phone_path = get_template_directory() . '/lottie-tmp/social-casino-phone-207.png';
$rebet_hero_phone_url = is_readable( $rebet_hero_phone_path )
? get_template_directory_uri() . '/lottie-tmp/social-casino-phone-207.png'
: '';
$rebet_hero_john_path = get_template_directory() . '/lottie-tmp/social-casino-john-209.png';
$rebet_hero_john_url = is_readable( $rebet_hero_john_path )
? get_template_directory_uri() . '/lottie-tmp/social-casino-john-209.png'
: '';
$rebet_hero_you_path = get_template_directory() . '/lottie-tmp/social-casino-you-210.png';
$rebet_hero_you_url = is_readable( $rebet_hero_you_path )
? get_template_directory_uri() . '/lottie-tmp/social-casino-you-210.png'
: '';
foreach ( $rebet_lottie_sources as $slide_number => $lottie_source ) {
$json_path = get_template_directory() . '/assets/lottie/' . $lottie_source['file'];
@@ -79,11 +99,96 @@ foreach ( $rebet_lottie_sources as $slide_number => $lottie_source ) {
<p>Disfruta juegos con crupier en vivo, Plinko, tragamonedas y mucho más, en cualquier momento y lugar.</p>
</div>
<?php $hero_video_url = wp_get_attachment_url( 15 ); ?>
<?php if ( $hero_video_url ) : ?>
<video class="rebet-hero__video" autoplay muted loop playsinline preload="auto" aria-hidden="true">
<source src="<?php echo esc_url( $hero_video_url ); ?>" type="video/mp4">
</video>
<?php if ( $rebet_hero_lottie_url ) : ?>
<?php
echo wp_get_attachment_image(
206,
'full',
false,
array(
'class' => 'rebet-hero__base-shadow',
'alt' => '',
'aria-hidden' => 'true',
'loading' => 'eager',
'fetchpriority' => 'high',
'decoding' => 'async',
'sizes' => '(max-width: 767px) 500px, 100vw',
)
);
echo wp_get_attachment_image(
205,
'full',
false,
array(
'class' => 'rebet-hero__shadow',
'alt' => '',
'aria-hidden' => 'true',
'loading' => 'eager',
'fetchpriority' => 'high',
'decoding' => 'async',
'sizes' => '(max-width: 767px) 500px, 100vw',
)
);
?>
<div
class="rebet-hero__animation"
data-hero-lottie
data-lottie-src="<?php echo esc_url( $rebet_hero_lottie_url ); ?>"
aria-hidden="true"
></div>
<?php if ( $rebet_hero_foreground_url ) : ?>
<img
class="rebet-hero__foreground"
src="<?php echo esc_url( $rebet_hero_foreground_url ); ?>"
width="1388"
height="1417"
alt=""
aria-hidden="true"
loading="eager"
fetchpriority="high"
decoding="async"
>
<?php endif; ?>
<?php if ( $rebet_hero_phone_url ) : ?>
<img
class="rebet-hero__phone"
src="<?php echo esc_url( $rebet_hero_phone_url ); ?>"
width="2776"
height="2834"
alt=""
aria-hidden="true"
loading="eager"
fetchpriority="high"
decoding="async"
>
<?php endif; ?>
<?php if ( $rebet_hero_john_url ) : ?>
<img
class="rebet-hero__john-message"
src="<?php echo esc_url( $rebet_hero_john_url ); ?>"
width="2776"
height="2834"
alt=""
aria-hidden="true"
loading="eager"
fetchpriority="high"
decoding="async"
>
<?php endif; ?>
<?php if ( $rebet_hero_you_url ) : ?>
<img
class="rebet-hero__you-message"
src="<?php echo esc_url( $rebet_hero_you_url ); ?>"
width="2776"
height="2834"
alt=""
aria-hidden="true"
loading="eager"
fetchpriority="high"
decoding="async"
>
<?php endif; ?>
<?php endif; ?>
</section>
@@ -113,13 +218,20 @@ foreach ( $rebet_lottie_sources as $slide_number => $lottie_source ) {
</p>
</div>
<div class="rebet-carousel__media">
<?php $social_video_url = wp_get_attachment_url( 25 ); ?>
<?php if ( $social_video_url ) : ?>
<video muted loop playsinline preload="metadata" aria-label="Vista previa del juego social de ReBet">
<source src="<?php echo esc_url( $social_video_url ); ?>" type="video/mp4">
</video>
<?php endif; ?>
<div class="rebet-carousel__media rebet-carousel__media--social-game" aria-hidden="true">
<div class="rebet-social-game-scene">
<?php echo wp_get_attachment_image( 181, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__phone', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 178, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__message rebet-social-game-scene__message--one', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 179, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__message rebet-social-game-scene__message--two', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 180, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__message rebet-social-game-scene__message--three', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 182, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--one', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 183, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--two', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 184, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--three', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 185, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--four', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 186, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--five', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 187, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--six', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 188, 'full', false, array( 'class' => 'rebet-social-game-scene__asset rebet-social-game-scene__reaction rebet-social-game-scene__reaction--seven', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
</div>
</div>
</article>
@@ -198,13 +310,23 @@ en vivo. ¡Sentirás que estás en Las Vegas!</p>
<h2>¡<span>Miles</span> de <span>juegos</span><br> de casino!</h2>
<p>Blackjack, ruleta, baccarat y más: clásicos de casino con un toque moderno. Toma asiento y juega tu mano.</p>
</div>
<div class="rebet-carousel__media">
<?php $table_video_url = wp_get_attachment_url( 27 ); ?>
<?php if ( $table_video_url ) : ?>
<video muted loop playsinline preload="metadata" aria-label="Vista previa de los juegos de mesa de ReBet">
<source src="<?php echo esc_url( $table_video_url ); ?>" type="video/mp4">
</video>
<?php endif; ?>
<div class="rebet-carousel__media rebet-carousel__media--table-game" aria-hidden="true">
<div class="rebet-table-game-scene">
<?php echo wp_get_attachment_image( 202, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__table', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 194, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--one', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 195, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--two', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 196, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--three', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 197, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--four', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 198, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--five', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 199, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--six', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 200, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--seven', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 201, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__token rebet-table-game-scene__token--eight', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 193, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__phone', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 189, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__card rebet-table-game-scene__card--one', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 190, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__card rebet-table-game-scene__card--two', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 191, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__card rebet-table-game-scene__card--three', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
<?php echo wp_get_attachment_image( 192, 'full', false, array( 'class' => 'rebet-table-game-scene__asset rebet-table-game-scene__card rebet-table-game-scene__card--four', 'alt' => '', 'loading' => 'lazy', 'decoding' => 'async' ) ); ?>
</div>
</div>
</article>
</div>
+57
View File
@@ -71,6 +71,62 @@
}
}
function initHeroLottie() {
var container = document.querySelector('[data-hero-lottie]');
var lottieEngine = window.lottie || window.bodymovin;
if (!container || !lottieEngine || typeof lottieEngine.loadAnimation !== 'function') return;
var animationPath = container.getAttribute('data-lottie-src');
var reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
var isVisible = true;
if (!animationPath) return;
var animation = lottieEngine.loadAnimation({
container: container,
renderer: 'svg',
loop: true,
autoplay: false,
path: animationPath,
rendererSettings: {
preserveAspectRatio: 'xMidYMid meet'
}
});
function setPlaybackState() {
if (reducedMotion.matches) {
animation.goToAndStop(0, true);
} else if (isVisible && !document.hidden) {
animation.play();
} else {
animation.pause();
}
}
animation.addEventListener('DOMLoaded', setPlaybackState);
animation.addEventListener('data_failed', function () {
container.setAttribute('data-lottie-error', 'true');
});
if ('IntersectionObserver' in window) {
var observer = new IntersectionObserver(function (entries) {
isVisible = entries[0].isIntersecting;
setPlaybackState();
}, { threshold: 0.05 });
observer.observe(container);
}
document.addEventListener('visibilitychange', setPlaybackState);
if (typeof reducedMotion.addEventListener === 'function') {
reducedMotion.addEventListener('change', setPlaybackState);
} else {
reducedMotion.addListener(setPlaybackState);
}
}
function initFeatureCarousels() {
var carousels = document.querySelectorAll('[data-feature-carousel]');
@@ -286,6 +342,7 @@
function initTheme() {
initHeader();
initHeroLottie();
initFeatureCarousels();
initFaqAccordions();
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

File diff suppressed because one or more lines are too long
+483 -21
View File
@@ -712,7 +712,7 @@ body { background:#000; }
.rebet-hero__intro,
.rebet-hero__secondary {
position: relative;
z-index: 2;
z-index: 6;
margin-right: auto;
margin-left: auto;
}
@@ -720,7 +720,7 @@ body { background:#000; }
.rebet-hero__intro {
max-width: 800px;
min-height: 306.6875px;
margin-bottom: 400px;
margin-bottom: 464px;
}
.rebet-hero__title {
@@ -813,19 +813,78 @@ body { background:#000; }
height: auto;
}
.rebet-hero__video {
.rebet-hero__base-shadow,
.rebet-hero__shadow {
position: absolute;
z-index: 1;
top: 0;
left: 50%;
display: block;
width: 100%;
max-width: 100%;
width: 110%;
max-width: none;
height: auto;
transform: translateX(-50%);
pointer-events: none;
}
.rebet-hero__base-shadow {
z-index: 5;
transform: translate(-50%, 68%);
}
.rebet-hero__shadow {
z-index: 2;
}
.rebet-hero__animation,
.rebet-hero__foreground,
.rebet-hero__phone,
.rebet-hero__john-message,
.rebet-hero__you-message {
position: absolute;
top: 0;
left: 50%;
display: block;
max-width: none;
aspect-ratio: 1658 / 1693;
pointer-events: none;
}
.rebet-hero__animation {
z-index: 1;
width: 100%;
transform: translate(-50%, -6.5%);
}
.rebet-hero__foreground,
.rebet-hero__phone,
.rebet-hero__john-message,
.rebet-hero__you-message {
width: 109%;
height: auto;
transform: translate(-50%, -16.5%);
}
.rebet-hero__foreground,
.rebet-hero__phone {
z-index: 4;
}
.rebet-hero__phone {
transform: translate(-50%, calc(-16.5% + 40px));
}
.rebet-hero__john-message {
z-index: 6;
}
.rebet-hero__you-message {
z-index: 4;
}
.rebet-hero__animation svg {
display: block;
}
@media (max-width: 1119px) {
.rebet-hero__intro {
margin-bottom: 200px;
@@ -841,12 +900,18 @@ body { background:#000; }
margin-bottom: 42%;
}
.rebet-hero__video {
.rebet-hero__base-shadow,
.rebet-hero__shadow,
.rebet-hero__animation,
.rebet-hero__foreground,
.rebet-hero__phone,
.rebet-hero__john-message,
.rebet-hero__you-message {
top: 17%;
}
.rebet-hero__badge {
left: 11%;
left: 0%;
width: 90px;
}
}
@@ -882,18 +947,43 @@ body { background:#000; }
}
.rebet-hero__secondary h2 {
font-size: 34.18px;
line-height: 41.02px;
margin: 0 0 18px;
font-size: 30px;
line-height: 36px;
}
.rebet-hero__secondary p {
margin: 0;
font-size: 18px;
line-height: 26px;
}
.rebet-hero__badge {
left: 0;
position: static;
width: 90px;
margin: 0 auto 12px;
}
.rebet-hero__video {
.rebet-hero__base-shadow,
.rebet-hero__shadow {
top: 32%;
width: 500px;
max-width: 500px;
width: 545px;
max-width: 545px;
}
.rebet-hero__animation {
top: 32%;
width: 420px;
max-width: 420px;
}
.rebet-hero__foreground,
.rebet-hero__phone,
.rebet-hero__john-message,
.rebet-hero__you-message {
top: 32%;
width: 545px;
max-width: 545px;
}
}
@@ -910,19 +1000,31 @@ body { background:#000; }
}
.rebet-hero__title {
font-size: 40px;
line-height: 41px;
font-size: 35px;
line-height: 37px;
}
.rebet-hero__lead,
.rebet-hero__secondary p {
.rebet-hero__lead {
margin: 16px 0;
font-size: 18px;
line-height: 26px;
}
.rebet-hero__secondary h2 {
font-size: 31px;
line-height: 38px;
font-size: 28px;
line-height: 34px;
}
.rebet-hero__badge {
width: 82px;
}
.rebet-hero__foreground,
.rebet-hero__phone,
.rebet-hero__john-message,
.rebet-hero__you-message {
width: 480px;
max-width: 480px;
}
}
@@ -1084,6 +1186,120 @@ body { background:#000; }
object-fit: contain;
}
/* Social game slide: the phone stays fixed while messages and reactions animate. */
.rebet-features .rebet-carousel__media--social-game {
background: transparent;
}
.rebet-social-game-scene {
--reaction-mid-rise: -78px;
--reaction-end-rise: -122px;
position: relative;
flex: 0 0 auto;
width: min(100%, 562px);
height: auto;
aspect-ratio: 680 / 580;
overflow: hidden;
}
.rebet-social-game-scene::before {
position: absolute;
z-index: 0;
top: -8%;
left: 0;
width: 100%;
height: 108%;
border-radius: 50%;
background: radial-gradient(ellipse at 56% 48%, rgba(255, 139, 45, 0.84) 0%, rgba(252, 70, 50, 0.42) 45%, transparent 73%);
content: "";
filter: blur(20px);
pointer-events: none;
}
.rebet-social-game-scene__asset {
position: absolute;
display: block;
max-width: none;
height: auto;
pointer-events: none;
user-select: none;
}
.rebet-social-game-scene__phone {
z-index: 2;
top: 9.1%;
left: 27.1%;
width: 47.1%;
}
.rebet-social-game-scene__message {
z-index: 3;
}
.rebet-social-game-scene__message--one {
top: 28.7%;
left: -0.9%;
width: 33.5%;
}
.rebet-social-game-scene__message--two {
top: 66.6%;
left: 7.5%;
width: 35.8%;
}
.rebet-social-game-scene__message--three {
top: 50%;
left: 59.3%;
width: 39.8%;
}
.rebet-social-game-scene__reaction {
z-index: 4;
}
.rebet-social-game-scene__reaction--one {
top: 50%;
left: 12.9%;
width: 3.53%;
}
.rebet-social-game-scene__reaction--two {
top: 60%;
left: 9%;
width: 3.53%;
}
.rebet-social-game-scene__reaction--three {
top: 55%;
left: 21.5%;
width: 2.2%;
}
.rebet-social-game-scene__reaction--four {
top: 63.2%;
left: 22.4%;
width: 3.6%;
}
.rebet-social-game-scene__reaction--five {
top: 79.7%;
left: 6.3%;
width: 3.53%;
}
.rebet-social-game-scene__reaction--six {
top: 76.4%;
left: 17.1%;
width: 3.53%;
}
.rebet-social-game-scene__reaction--seven {
top: 82.1%;
left: 20.3%;
width: 3.53%;
}
.rebet-features .rebet-carousel__media--lottie {
background: transparent;
}
@@ -1218,6 +1434,140 @@ body { background:#000; }
width: 11.6%;
}
/* Table games slide: the phone and poker table stay fixed while cards and tokens float. */
.rebet-features .rebet-carousel__media--table-game {
background: transparent;
}
.rebet-table-game-scene {
position: relative;
flex: 0 0 auto;
width: min(100%, 562px);
height: auto;
aspect-ratio: 680 / 580;
overflow: hidden;
}
.rebet-table-game-scene::before {
position: absolute;
z-index: 0;
right: -5%;
bottom: -13%;
width: 84%;
height: 47%;
border-radius: 50%;
background: radial-gradient(ellipse, rgba(255, 91, 20, 0.34) 0%, rgba(174, 35, 7, 0.17) 46%, transparent 72%);
content: "";
filter: blur(18px);
pointer-events: none;
}
.rebet-table-game-scene__asset {
position: absolute;
display: block;
max-width: none;
height: auto;
pointer-events: none;
user-select: none;
will-change: transform;
}
.rebet-table-game-scene__table {
z-index: 1;
top: 0.5%;
left: 53.5%;
width: 52.35%;
}
.rebet-table-game-scene__phone {
z-index: 3;
top: 6.3%;
left: 21.75%;
width: 37%;
}
.rebet-table-game-scene__card {
z-index: 5;
}
.rebet-table-game-scene__card--one {
top: 24.9%;
left: 7.35%;
width: 9.93%;
}
.rebet-table-game-scene__card--two {
top: 55.4%;
left: 14.5%;
width: 9.63%;
}
.rebet-table-game-scene__card--three {
top: 35.7%;
left: 54.85%;
width: 18.16%;
}
.rebet-table-game-scene__card--four {
top: 57.7%;
left: 80.3%;
width: 12%;
}
.rebet-table-game-scene__token {
z-index: 4;
}
.rebet-table-game-scene__token--one {
top: 13.2%;
left: 5.65%;
width: 9.34%;
}
.rebet-table-game-scene__token--two {
top: 39.8%;
left: 7.5%;
width: 12.2%;
}
.rebet-table-game-scene__token--three {
top: 72%;
left: 6.5%;
width: 12.2%;
}
.rebet-table-game-scene__token--four {
z-index: 2;
top: 73.8%;
left: 2.8%;
width: 9.26%;
}
.rebet-table-game-scene__token--five {
top: 5.2%;
left: 62.9%;
width: 5.81%;
}
.rebet-table-game-scene__token--six {
top: 7.7%;
left: 76.6%;
width: 5.96%;
}
.rebet-table-game-scene__token--seven {
z-index: 2;
top: 9.6%;
left: 56.45%;
width: 7.5%;
}
.rebet-table-game-scene__token--eight {
top: 8.2%;
left: 63.8%;
width: 12.2%;
}
.rebet-features .rebet-carousel__media--graphic {
background:
radial-gradient(circle at 62% 44%, rgba(252, 111, 39, 0.27), transparent 43%),
@@ -1493,7 +1843,7 @@ body { background:#000; }
.rebet-features .rebet-carousel__copy {
box-sizing: border-box;
min-height: 228px;
padding: 0 16px;
padding: 16px 16px 0;
}
.rebet-features .rebet-carousel__copy h2 {
@@ -1517,6 +1867,18 @@ body { background:#000; }
height: 254px;
}
.rebet-features .rebet-social-game-scene {
--reaction-mid-rise: -42px;
--reaction-end-rise: -68px;
width: 298px;
height: 254px;
}
.rebet-features .rebet-table-game-scene {
width: 298px;
height: 254px;
}
.rebet-casino-scene__categories {
top: 31%;
left: -2%;
@@ -1619,6 +1981,14 @@ body { background:#000; }
padding: 0;
}
.rebet-features #rebet-feature-1 {
padding: 0;
}
.rebet-features #rebet-feature-5 {
padding: 0;
}
.rebet-features .rebet-carousel__copy h2 {
font-size: 34px;
line-height: 37px;
@@ -1669,6 +2039,54 @@ body { background:#000; }
animation: rebet-casino-coin-four-float 4.8s ease-in-out 0.55s infinite;
}
.rebet-carousel__slide.is-active .rebet-table-game-scene__card {
animation: rebet-table-card-float 4.2s ease-in-out infinite;
}
.rebet-carousel__slide.is-active .rebet-table-game-scene__card--two { animation-delay: -1.1s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__card--three { animation-delay: -2.25s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__card--four { animation-delay: -3.15s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token {
animation: rebet-table-token-float 3.8s ease-in-out infinite;
}
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--two { animation-delay: -0.55s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--three { animation-delay: -1.05s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--four { animation-delay: -1.55s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--five { animation-delay: -2.05s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--six { animation-delay: -2.55s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--seven { animation-delay: -3.05s; }
.rebet-carousel__slide.is-active .rebet-table-game-scene__token--eight { animation-delay: -3.55s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__message--one {
animation: rebet-social-message-left 5.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.rebet-carousel__slide.is-active .rebet-social-game-scene__message--two {
animation: rebet-social-message-left 5.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s infinite;
}
.rebet-carousel__slide.is-active .rebet-social-game-scene__message--three {
animation: rebet-social-message-right 5.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s infinite;
}
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction {
animation: rebet-social-reaction-rise 2s linear infinite;
}
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--two { animation-delay: 0.35s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--three { animation-delay: 0.7s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--four { animation-delay: 1.05s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--five { animation-delay: 1.4s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--six { animation-delay: 1.75s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction--seven { animation-delay: 2.1s; }
.rebet-carousel__slide.is-active .rebet-social-game-scene__message,
.rebet-carousel__slide.is-active .rebet-social-game-scene__reaction {
animation-fill-mode: both;
}
@keyframes rebet-card-float {
0%, 100% { translate: 0 0; }
50% { translate: 0 -8px; }
@@ -1713,6 +2131,50 @@ body { background:#000; }
0%, 100% { transform: translate3d(0, 3px, 0) rotate(-6deg); }
50% { transform: translate3d(-6px, -8px, 0) rotate(7deg); }
}
@keyframes rebet-table-card-float {
0%, 100% { transform: translate3d(0, 4px, 0) rotate(-0.8deg); }
50% { transform: translate3d(3px, -9px, 0) rotate(1.2deg); }
}
@keyframes rebet-table-token-float {
0%, 100% { transform: translate3d(0, 4px, 0) rotate(-2deg); }
50% { transform: translate3d(4px, -9px, 0) rotate(3deg); }
}
@keyframes rebet-social-message-left {
0%, 12% { opacity: 0; transform: translate3d(-32px, 8px, 0) scale(0.97); }
25%, 78% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
90%, 100% { opacity: 0; transform: translate3d(-14px, -5px, 0) scale(0.985); }
}
@keyframes rebet-social-message-right {
0%, 12% { opacity: 0; transform: translate3d(32px, 8px, 0) scale(0.97); }
25%, 78% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
90%, 100% { opacity: 0; transform: translate3d(14px, -5px, 0) scale(0.985); }
}
@keyframes rebet-social-reaction-rise {
0% {
opacity: 0;
transform: translate3d(0, 18px, 0) scale(0.82) rotate(-6deg);
}
16% {
opacity: 1;
transform: translate3d(-2px, 0, 0) scale(1) rotate(-2deg);
}
72% {
opacity: 1;
transform: translate3d(3px, var(--reaction-mid-rise), 0) scale(1) rotate(3deg);
}
100% {
opacity: 0;
transform: translate3d(-2px, var(--reaction-end-rise), 0) scale(0.9) rotate(7deg);
}
}
}
@media (prefers-reduced-motion: reduce) {