Change video timing when moving mouse?
I stumbled across this WoW website and after checking some of the elements, I found that the "spinning symbols" are WebM / MP4 videos. Go to the "Characters" section, select a character and press this button. This will download the video of their rotation.
These videos can rewind and fast forward depending on the direction you drag the cursor (Left = reverse, Right = fast-forward).
My question is simple, which function does this? Is it JavaScript?
Thanks in advance.
+3
source to share
1 answer
This is JavaScript and this is the code they are using:
//this is for video on stage
CharacterSelect.ui.modelVideo = ModelVideo.build($(".model-video"));
//and this is when the page is ready
$(document).ready(function() {
if (ModelVideo.supportsVideo && !$('html').hasClass('ie')) {
var modelVideo = videoController.create(".model-video");
}
});
+1
source to share