You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
This is the HTML block I'm trying to affect <div id="bottle"><img src="css/images/bottle.png" /></div>
Nothing from skrollr gets applied to my element.
In trying to diagnose the problem, I've found that this statement (in parseAnimationDeclarations) is evaluating as null even when the value of rxAnimation.exec(input) is not null.
skrollr did NOT work on #bottle, but did work on #foo. PROGRESS!!
I swapped #foo and #bottle to get skrollr working again on an element I actually needed. Once that was working for #bottle, I cleaned up my CSS, removing #foo and the animation keyframes for it.
ERROR!!
I was unable to remove the unnecessary CSS and keep skrollr-stylesheets working. My solution for now is to have a placeholder element and animation at the top of the file. Why does this work? I haven't figured it out, but it does.
I'm having no luck implementing skrollr-stylesheets at all.
I have this CSS link in my HTML
<link rel="stylesheet" href="css/skrollr.css" data-skrollr-stylesheet>
This is the CSS from skrollr.css
This is the HTML block I'm trying to affect
<div id="bottle"><img src="css/images/bottle.png" /></div>
Nothing from skrollr gets applied to my element.
In trying to diagnose the problem, I've found that this statement (in parseAnimationDeclarations) is evaluating as null even when the value of rxAnimation.exec(input) is not null.
The current output from rxAnimation.exec(input) is an array, which is not (!==) null.
So nothing within the while statement gets applied and none of my animation or selector objects are being built.
Any ideas where I've gone wrong?
UPDATE
Found that part of the problem was spaces in the CSS. Still working on it.
UPDATE 2
The problem seems to stem from the processing of the CSS, with spacing playing a large factor in successful parsing.
For instance, I was finally able to get this to work, but only after I created a second CSS element and animation. My CSS looked like this:
skrollr did NOT work on #bottle, but did work on #foo. PROGRESS!!
I swapped #foo and #bottle to get skrollr working again on an element I actually needed. Once that was working for #bottle, I cleaned up my CSS, removing #foo and the animation keyframes for it.
ERROR!!
I was unable to remove the unnecessary CSS and keep skrollr-stylesheets working. My solution for now is to have a placeholder element and animation at the top of the file. Why does this work? I haven't figured it out, but it does.
The text was updated successfully, but these errors were encountered: