Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ninquiet/OxygenTransitionAndParallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ninquiet

_OxygenTransitionAndParallax, _

Observation: this needs jQuery to works, so if you don't have it just add this code to some part of your website that let you add HTML code:

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

Features

  • Implementation of Parallax with Paroller.js
  • Simple animation pre-made to execute when are visible
  • Possibility to create your own animations

OxygenTransitionAndParallax its simple to use, just add OTAP.js code in some part of your website that let you introduce JavaScript code, and do the same with OTAP.css in some CSS part.

Then just add some of this class yo your components in order to achieve the animation:

To perform a basic parallax animation:

parallaxBasic

To perform an animation example from RIGHT to LEFT __in the father container (need to keep being visible when the object don't): (this is the class that says to the code that a child of this component is going to be animated)

baseTransition

and (this says to the CSS which animation will be performed in the child)

transitionLeft

__in the child that animates (the child that we want to animate):

transitionChild

And that's all :D!!! The only thing that changes from one kind of animation to other, is the second class of the father, just change transitionLeft to whatever of the next animations:

transitionLeft
transitionRight
transitionRightFast

This code is still to improve, I will be happy to know about your experiences and comments.

About

This is to use perspnaliced Transitions and Paralax in Oxygen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors