Is there scrollex for vanilla javascript instead of jQuery scrollex? [closed]How do JavaScript closures work?How do I check if an element is hidden in jQuery?How do I remove a property from a JavaScript object?Which equals operator (== vs ===) should be used in JavaScript comparisons?Setting “checked” for a checkbox with jQuery?How do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?

Can I Retrieve Email Addresses from BCC?

Everything Bob says is false. How does he get people to trust him?

Why Were Madagascar and New Zealand Discovered So Late?

Can a monster with multiattack use this ability if they are missing a limb?

Failed to fetch jessie backports repository

voltage of sounds of mp3files

If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?

What's the purpose of "true" in bash "if sudo true; then"

Modify casing of marked letters

The baby cries all morning

Generic lambda vs generic function give different behaviour

How do I define a right arrow with bar in LaTeX?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Curses work by shouting - How to avoid collateral damage?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

Is it correct to write "is not focus on"?

Valid Badminton Score?

Increase performance creating Mandelbrot set in python

Are there any comparative studies done between Ashtavakra Gita and Buddhim?

Using parameter substitution on a Bash array

Why "be dealt cards" rather than "be dealing cards"?

The plural of 'stomach"

Is this Spell Mimic feat balanced?

How can I replace every global instance of "x[2]" with "x_2"



Is there scrollex for vanilla javascript instead of jQuery scrollex? [closed]


How do JavaScript closures work?How do I check if an element is hidden in jQuery?How do I remove a property from a JavaScript object?Which equals operator (== vs ===) should be used in JavaScript comparisons?Setting “checked” for a checkbox with jQuery?How do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?













-1















I have piece of code where jquery scrollex is used (it triggers custom animation). I should remove any jquery related code, so I need this scrollex method in vanilla javascript. Is it possible?



$header = $('#header'),
$banner = $('#banner');

$banner.scrollex(
bottom: $header.outerHeight(),
terminate: function()
$header.removeClass('alt')
,
enter: function()
$header.addClass('alt')
,
leave: function()
$header.removeClass('alt');
$header.addClass('reveal')

)









share|improve this question















closed as too broad by adiga, Sterling Archer, montrealist, thewaywewere, miltonb Mar 21 at 20:10


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Yes it's possible. If you look at the source of the library you'll see how it's done.

    – Rory McCrossan
    Mar 21 at 15:26















-1















I have piece of code where jquery scrollex is used (it triggers custom animation). I should remove any jquery related code, so I need this scrollex method in vanilla javascript. Is it possible?



$header = $('#header'),
$banner = $('#banner');

$banner.scrollex(
bottom: $header.outerHeight(),
terminate: function()
$header.removeClass('alt')
,
enter: function()
$header.addClass('alt')
,
leave: function()
$header.removeClass('alt');
$header.addClass('reveal')

)









share|improve this question















closed as too broad by adiga, Sterling Archer, montrealist, thewaywewere, miltonb Mar 21 at 20:10


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Yes it's possible. If you look at the source of the library you'll see how it's done.

    – Rory McCrossan
    Mar 21 at 15:26













-1












-1








-1








I have piece of code where jquery scrollex is used (it triggers custom animation). I should remove any jquery related code, so I need this scrollex method in vanilla javascript. Is it possible?



$header = $('#header'),
$banner = $('#banner');

$banner.scrollex(
bottom: $header.outerHeight(),
terminate: function()
$header.removeClass('alt')
,
enter: function()
$header.addClass('alt')
,
leave: function()
$header.removeClass('alt');
$header.addClass('reveal')

)









share|improve this question
















I have piece of code where jquery scrollex is used (it triggers custom animation). I should remove any jquery related code, so I need this scrollex method in vanilla javascript. Is it possible?



$header = $('#header'),
$banner = $('#banner');

$banner.scrollex(
bottom: $header.outerHeight(),
terminate: function()
$header.removeClass('alt')
,
enter: function()
$header.addClass('alt')
,
leave: function()
$header.removeClass('alt');
$header.addClass('reveal')

)






javascript jquery methods customization






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 15:26









Rory McCrossan

249k29217254




249k29217254










asked Mar 21 at 15:12









fufnafufna

139214




139214




closed as too broad by adiga, Sterling Archer, montrealist, thewaywewere, miltonb Mar 21 at 20:10


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by adiga, Sterling Archer, montrealist, thewaywewere, miltonb Mar 21 at 20:10


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1





    Yes it's possible. If you look at the source of the library you'll see how it's done.

    – Rory McCrossan
    Mar 21 at 15:26












  • 1





    Yes it's possible. If you look at the source of the library you'll see how it's done.

    – Rory McCrossan
    Mar 21 at 15:26







1




1





Yes it's possible. If you look at the source of the library you'll see how it's done.

– Rory McCrossan
Mar 21 at 15:26





Yes it's possible. If you look at the source of the library you'll see how it's done.

– Rory McCrossan
Mar 21 at 15:26












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript