electerious / basicScroll

Standalone parallax scrolling for mobile and desktop with CSS variables.
https://basicscroll.electerious.com
MIT License
3.63k stars 148 forks source link

Can't see any property change #34

Closed stratboy closed 5 years ago

stratboy commented 5 years ago

Hi, I tried quite about anything, and can't see any property change if I console-inspect my dom. In the end, I even tried the body itself, but nothing happened. What am I doing wrong?:

var parallax = basicScroll.create({
  elem: document.body,
  from: 'top-bottom',
  to: 'bottom-top',
  props: {
    '--test': {
      from: '0'
      ,to: '100%'
    }
  }
})
stratboy commented 5 years ago

...I didn't start it...