Demo now works with both scroll and resize!