Aurelia 1.x Q&A - Sandbox at https://codesandbox.io/s/aurelia-javascript-sandbox-jnl6q85zq5
bigopon on 4.0.3
bigopon on master
chore(release): prepare release⦠(compare)
bigopon on 4.0.2
bigopon on master
chore(release): prepare release⦠(compare)
In the end I used an eventListener on the scroll of the page, https://ilikekillnerds.com/2016/02/using-event-listeners-in-aurelia/
together with adding a class to the element, whenever
elements[i].getBoundingClientRect().top - windowHeight <= 0
https://www.dev-tips-and-tricks.com/animate-elements-scrolled-view-vanilla-js
Also I tried using scrolltop.bind="scrolltop" but that never worked so.
Hi all, I would like to write agnostic js code for a design system components (e.g. dropdown) that could be used in Aurelia and VueJS. Example agnostic code:
element = document.createElement('div')
element.addEventListener('click', () => console.log('foo'))
Do you guys know if I can somehow use that in Aurelia?