The HTML Structure
The HTML structure is the foundation that sets the stage for the entire cinematic spectacle. The `<section>` tag encapsulates the main content, while the `<div>` with the class `content` divides the screen into two parts. One side houses information about the movie night, and the other showcases a dynamic swiper container for movie details.
Fonts
The invitation uses two Google Fonts: 'Comfortaa' for a cozy feel and 'Poppins' for a touch of sophistication. These fonts are imported using the `@import` rule in the CSS.
Background
The background of the section is set to a dark shade (#26262E), creating a cinematic ambiance. The backdrop-filter property with a blur effect of 30px adds a subtle touch of elegance.
Movie Night Info
The `.info` class stylizes the information about the movie night. White text on a semi-transparent backdrop gives a modern and immersive look. The movie night title is highlighted with a gradient background (`movie-night` class), using vibrant colors.
Join Button
The 'Join' button is styled with a gelatine animation on hover, making it visually engaging. The button has a soft shadow and a color scheme that complements the overall design.
The Swiper Container
The `.swiper` class represents a swiper container, a popular JavaScript library for creating interactive sliders. Each `.swiper-slide` inside contains details about a specific movie, including a rating and title.
Movie Cards
The movie cards have a gradient background and a subtle box-shadow, creating a card-like appearance. The rating and title are positioned strategically for a sleek look.
Animated Background
The `.circles` class introduces a captivating animated background. Ten circular elements move in a mesmerizing pattern, adding an extra layer of visual appeal reminiscent of floating popcorn or twinkling stars.
JavaScript Magic
The script at the end initializes the Swiper library, configuring it to display movie details in a card-like fashion. The settings include the 'cards' effect, grab cursor, initial slide, loop, rotation, and mousewheel functionality.
Responsive Design
Though currently commented out, the code includes a media query for screens with a maximum width of 750px. This would modify the layout for a better experience on smaller screens.
In conclusion, this HTML and CSS masterpiece invites users to a captivating movie night experience. The combination of fonts, colors, animations, and the Swiper library creates an immersive atmosphere, promising a night filled with cinematic wonders. So, grab your popcorn and hit that 'Join' button for a cinematic journey like no other!