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 Tilt #1

Component Structure

  • IT1 COMPONENT (Section): A full viewport height container designed to center its contents. It is the primary wrapper for the image tilt effect, ensuring that the effect is displayed prominently within the viewport.

  • IT1 CONTAINER (Container): Directly holds the image wrapper, aligning it centrally both vertically and horizontally within the section.

    • IT1 IMAGE WRAPPER (Div): Applies a perspective style through the it1__img-wrapper class, setting up the necessary 3D space for the tilt effect to occur.

      • IT1 IMAGE (Image): The target image for the tilt effect, referenced with the it1__img class. The image is sourced from an external URL and is the focal point for the interactive tilt animations.

Animation Structure

Events

  1. IT1 - MOUSELEAVE: Resets the tilt effect on the image to its original state when the mouse leaves the .it1__img-wrapper area. This event ensures that the image returns to a flat position, with no rotation on the X or Y axes.

  2. IT1 - MOUSEMOVE: Triggers the tilt effect based on the mouse's position relative to the .it1__img-wrapper. The image's rotation on the Y-axis (horizontal tilt) and X-axis (vertical tilt) is dynamically calculated based on the mouse position, creating an interactive 3D effect as the user moves the cursor over the image. The calculated rotation ensures that the tilt mirrors the direction of cursor movement, enhancing the perception of depth and interactivity.

PreviousIMAGENextImage Reveal #1

Last updated 1 year ago