update css in example dir
use requestAnimationFrame if supported