CodeHunger / Jarallax

Parallax scrolling library javascript
GNU General Public License v2.0
165 stars 20 forks source link

in horizontal many css rule doesn't work #36

Open krissanawat opened 10 years ago

krissanawat commented 10 years ago

opacity don't set to 0 it's set to 0.02 display 'none' doesn't work

CodeHunger commented 10 years ago

You should always set an extra key at the beginning and at the end. (0% and 100%) this should solve your problems. An example is available at www.jarallax.com/demo3/ (line 16)

krissanawat commented 10 years ago
    {progress: '0%',left:'-70%',opacity:'1'},
    {progress: '1.5%', left:'-40%',opacity:'1'},
    {progress: '2%',left:'30%',opacity:'0'},

can you help me I need to force it to 0 it's stuck on 0.02

CodeHunger commented 10 years ago

Try an extra key at 100% also with opacity 0.

Kind regards, Codehunger

From my android phone On Dec 11, 2013 10:26 AM, "taqmaninw" notifications@github.com wrote:

{progress: '0%',left:'-70%',opacity:'1'},
{progress: '1.5%', left:'-40%',opacity:'1'},
{progress: '2%',left:'30%',opacity:'0'},

can you help me I need to force it to 0 it's stuck on 0.02

— Reply to this email directly or view it on GitHubhttps://github.com/CodeHunger/Jarallax/issues/36#issuecomment-30305475 .