Skip to content

easybuckaroo/paralex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paralex

Lightweight Parallax simiar effects. Can be placed under any HTML element. Sizes: Third, Half, Full screen. Area will auto-expand to forground text size.

Scroll Speed: Slow, Medium, Fast. Changes size of background image, effect of moving at different rates.

Background effect: Scroll with mouse, Scroll Reverse of mouse, Fixed background

Background inline styles: background, background-position, opacity

Background position is a focal point, when the background image is cropped to fit in area, cropped image will focus on the background position.

Opacity: 0.3 is nice for dark text.

  <div class="paralex (default:third|half|full) (slow|default:medium|fast) (default:scroll|reverse|fixed)">
    <div class="background" style=" (everthing except background: url is optional)
      background: url('https://...');
      opacity: 0.3;
      background-position: center center; /*OR*/
      background-position-x: 50%; /*x and y are the focal point of the image, when crop happens.*/
      background-position-y: 50%;
      ">
    </div>
    <div class="foreground">
     Content Content Content
    </div>
  </div>

If you need assistance dbrabon@gmail.com

About

Similar to Parallax. Simple CSS and jQuery for many effects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published