Animating programmatically with Redux and React
tech.instacart.com
tech.instacart.com
window.addEventListener(
'resize',
()=>store.dispatch({
type: 'WINDOW_RESIZE'
})
);
window.addEventListener(
'scroll',
()=>store.dispatch({
type: 'WINDOW_SCROLL'
})
);
NOTE: you should double-check your scroll position, as the scroll events continue to fire as you hit the edge of the viewport.I'm still curious as to when/if we may see the likes of aphrodite really take off.