How to provide classes to the video element? #1098
Unanswered
AndreasFurster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We would like add a custom (Tailwind) class to the video element. In this case to let the video cover the entire div (object-fit: cover). Can we do this without js?
For example:
But when we use this code the video element is not used. Instead another video element is created.
We found the following solution, but we would like to attach a class directly to the video element instead.
PS: is there another way to cover the entire video + poster?
Beta Was this translation helpful? Give feedback.
All reactions