Answer the question
In order to leave comments, you need to log in
Why does css animation (transition) not work when scraping a site using phantomjs?
There is the following task: an html page with animation needs to be converted into a video.
I do this: With the help of phantomjs I take pictures of the page every 25ms, and then with the help of ffmpeg I glue it all into a video.
This mechanism works well.
BUT, I ran into a problem that phantomjs (more precisely, the browser engine that it uses) does not support css transaction.
That is, for example, the block .headline
should appear smoothly:
js: css:$('.headline').css('opacity', 1);
.headline {
position: absolute;
top: 773px;
left: 53px;
opacity: 0;
-o-transition: ease-in 0.6s;
-moz-transition: ease-in 0.6s;
-ms-transition: ease-in 0.6s;
-webkit-transition: ease-in 0.6s;
transition: ease-in 0.6s;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question