animation with oscillator