Skip to content

Login Page with Image Carousel Panel

Bootstrap 5 split login page with a fading photo carousel, pause control, password toggle and simulated sign-in with validation.

Also known as: split screen login, login with image slider, sign in page with photo carousel, two column login page, login page with background carousel

Login Page with Image Carousel Panel live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 split-screen login page with a rotating photo carousel on the left and a clean sign-in form on the right. It suits travel, outdoor and lifestyle apps or any product that wants a branded, image-led sign-in screen.

How it works

The page is a main.lic-page with a single .lic-row that fills the viewport height. The left column, .lic-media, holds a standard Bootstrap carousel (.carousel.slide.carousel-fade) with data-bs-ride="carousel" and data-bs-interval="5000". Each .carousel-item contains a full-bleed .lic-img and a .lic-caption with a small pill label, a heading and a short line of text. A gradient pseudo-element on every slide keeps the white caption readable. The indicators are restyled as short bars in .lic-indicators; the active one stretches wider.

On phones the photo column becomes a 15rem banner above the form; from the md breakpoint the two columns sit side by side and the carousel fills its column.

The script runs on DOMContentLoaded for every .lic-page. The round .lic-pause button calls bootstrap.Carousel.getOrCreateInstance() and switches between pause() and cycle(). The .lic-reveal button toggles the password field between password and text. On submit the form calls preventDefault(), checks checkValidity(), adds was-validated for Bootstrap's feedback styles and focuses the first invalid field. Valid input shows a spinner for 1.2 seconds and then writes a confirmation into .lic-status.

Customization

  • --lic-accent and --lic-accent-dark on .lic-page in style.css: change the teal brand color of the logo, links, focus rings and buttons.
  • --lic-panel-bg on .lic-page: sets the background behind the form.
  • data-bs-interval="5000" on #licCarousel: change the slide duration in milliseconds.
  • Remove carousel-fade from #licCarousel to slide the photos horizontally instead of cross-fading.
  • col-md-6 col-lg-7 on .lic-media and col-md-6 col-lg-5 on .lic-panel: change the split ratio between photo and form.
  • The window.setTimeout in the submit handler of script.js: replace it with a fetch() call to your authentication endpoint.
  • The linear-gradient in .lic-carousel .carousel-item::after: darken or lighten the overlay behind the captions.

Use cases

  • Travel and outdoor apps: rotating photos with captions give sign-in a branded, image-led look
  • Lifestyle products: fade through pictures on the left while the form stays calm on the right
  • SaaS products: a pause button lets users stop the auto-rotating slideshow
  • Mobile layouts: the photo column becomes a banner above the form on phones
  • Prototypes: password toggle and validation show a complete simulated sign-in

Accessibility

The form uses real label elements, autocomplete hints and Bootstrap's invalid-feedback messages; the first invalid field receives focus. The password toggle has aria-controls, aria-pressed and a changing aria-label. .lic-status is a role="status" live region, so the result is announced. The pause button lets users stop the auto-rotating slideshow, and when prefers-reduced-motion: reduce is set the carousel starts paused. All controls have a visible :focus-visible outline, and every photo has a descriptive alt.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. The photos come from Unsplash; replace them with your own images. If you use the carousel more than once on a page, give each copy a unique id and update the data-bs-target values of its indicators.

Login Page with Image Carousel Panel at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Login Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Login Page with Image Carousel Panel code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Login Page with Image Carousel Panel – Bootstrap 5 login pages component screenshot
Login Page with Image Carousel Panel · Bootstrap 5 Login Pages

More Login Pages

Glassmorphism Login Page over Photo – Pure CSS login pages preview

Glassmorphism Login Page over Photo

Full-page login with a frosted glass card over a scenic lake photo, password reveal toggle, inline validation and a simulated sign-in state.

Centered Login Page – Bootstrap 5 login pages preview

Centered Login Page

Full-page Bootstrap 5 sign-in with a centered card, Google and GitHub buttons, validated email and password fields, a show password toggle and a Caps Lock warning.

Split Login Page – Tailwind CSS login pages preview

Split Login Page

Split-screen Tailwind CSS login page with a violet brand panel, inline validation, show/hide password toggle and a loading state.