animate.css icon indicating copy to clipboard operation
animate.css copied to clipboard

Video can't go fullscreen when container is animated

Open Sundypha opened this issue 11 years ago • 11 comments

When I animate a container which has a video inside, the video can't go correctly in fullscreen mode:

https://jsfiddle.net/snq8bk0o/3/embedded/result/ (scroll down to see video, the breaks are there to simulate a long site)

https://jsfiddle.net/snq8bk0o/3/

is there a way around it?

Sundypha avatar Apr 16 '15 18:04 Sundypha

+1

aacrouch avatar Apr 22 '15 00:04 aacrouch

It's because of this property

.animated{ 
  -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

Changing that to

.animated{ 
  -webkit-animation-fill-mode: none;
    animation-fill-mode: none;
}

resolves the issue.

Cheers!

UiCandy avatar Apr 22 '15 02:04 UiCandy

:+1: works, PR?

@daneden is this introduce some other issue? lol

tunnckoCore avatar Apr 23 '15 00:04 tunnckoCore

@tunnckoCore I posted a quick fix at the time, I'm going to initiate a PR.

UiCandy avatar Apr 23 '15 00:04 UiCandy

This is great, it fixed an issue with fullscreen video I was having. Thanks heaps.

BenDTU avatar Aug 26 '15 02:08 BenDTU

@UiCandy Is there a pull request for this up?

BenDTU avatar Aug 26 '15 02:08 BenDTU

@UiCandy Wasnt there an issue that was fixed by

.animated{ -webkit-animation-fill-mode: both; animation-fill-mode: both; }

procodeing avatar Aug 26 '15 15:08 procodeing

I could be wrong on account of not having used Github for long, but isn't that just the commit? I can't see any related pull request.

BenDTU avatar Aug 27 '15 04:08 BenDTU

@BenDTU Yeah put the wrong thing

procodeing avatar Aug 27 '15 13:08 procodeing

As a follow up here - this fix creates issues when trying to animate out. I'm using it with a component called "Power Tour", using "FadeInRight" and "FadeOutRight". The component would animate out and then reappear where it was before.

I ended up using animation-fill-mode: both with the powertour classes to only apply when it was definitely in a 'visible' state, but yeah - that likely won't work here as is.

BenDTU avatar Sep 01 '15 04:09 BenDTU

Closing the issue as it seems to be solved.

eltonmesquita avatar Mar 13 '17 11:03 eltonmesquita