Bricksmotion Components
  • Getting Started
  • Setup
    • Where is my license key?
    • Activate you license within Bricksforge
  • Using components
    • Bricksforge One-Click
    • Bricks Structure
    • Activate "Event Panel"
    • Manual Importing Timelines and Events
    • Locked Classes
    • Reassign Timelines
    • Loading Conditions
  • Components
    • HEROES
      • Hero #1
      • Hero #2
      • Hero #3
      • Hero #4
      • Hero #5
      • Hero #6
      • Hero #7
      • Hero #8
      • Hero #9
      • Hero #10
    • SCROLL SCENES
      • Sticky Sections #1
      • Vertical Scroll #1
      • Scroll Scene #1
      • Scroll Scene #2
      • Scroll Scene #3
      • Scroll Scene #4
      • Scroll Scene #6
      • Scroll Scene #7
      • Scroll Scene #8
      • Scroll Scene #9
    • BUTTONS
      • Button #1
      • Button #2
      • Button #3
      • Button #4
      • Button #5
      • Button #6
      • Button #7
    • TABS
      • Tabs #3
      • Tabs #4
    • PROJECTS
      • Projects #1
      • Projects #2
      • Projects #3
      • Projects #4
      • Projects #5
      • Projects #6
      • Projects #7
    • CTA
      • CTA #1
      • CTA #2
    • CARDS
      • Cards #1
      • Cards #2
    • MENUS
      • Bottom Nav #1
      • Mega Menu #1
      • Full Screen Menu #2
      • Full Screen Menu #3
    • CUSTOM CURSORS
      • Custom Cursor #1
    • LOADING SCREENS
      • Loading Screen #1
      • Loading Screen #2
      • Loading Screen #3
    • TEXT
      • Text Hover #1
      • Split Text #2
    • IMAGE
      • Image Tilt #1
      • Image Reveal #1
      • Image Reveal #2
      • Image Reveal #3
    • PROGRESS BARS
      • Progress Bar #1
      • Progress Bar #2
Powered by GitBook
On this page
  • Component Structure
  • Animation Structure
  1. Components
  2. IMAGE

Image Reveal #2

Component Structure

  • IR2 - IMG CONTAINER (Div): This is the central element of the component, designed to house the image and its masking effect. It's styled with the ir2__img-container class for relative positioning and overflow control, setting the foundation for the reveal animation.

    • IR2 - IMG MASK (Div): Utilizes the ir2__img-mask class to create a foreground layer that initially covers the image. This layer is set to scale horizontally from 0 to full width, revealing the image beneath it as the animation progresses.

    • IR2 - IMG (Image): The target image for the reveal effect, which fills the container completely thanks to the ir2__img class ensuring it's appropriately sized and positioned.

Animation Structure

IR2 - SCROLL REVEAL

This timeline defines the scroll-triggered animation sequence for the Image Reveal #2 component, consisting of animations that gradually uncover the image as the user scrolls:

  1. Mask Reveal Animation: Targets the .ir2__img-mask within the .ir2__img-container, scaling it horizontally from 0 (completely hidden) to 1 (fully visible) over 0.5 seconds. This animation creates the effect of the image being revealed from left to right.

  2. Image Fade-in Animation: Before the mask starts revealing the image, the .ir2__img itself transitions from completely transparent (autoAlpha: 0) to fully opaque (autoAlpha: 1) in a quick 0.1-second animation. This ensures the image is ready and visible as soon as the mask begins to move.

  3. Mask Completion Animation: Ensures that the mask scales fully across the image, solidifying the reveal effect. This last step confirms the image is entirely visible after the scroll-triggered animation.

PreviousImage Reveal #1NextImage Reveal #3

Last updated 1 year ago