m90 / seeThru

HTML5 video with alpha channel transparencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relative Units for various screens

xyzajacf opened this issue · comments

Hey Guys,

is there a way to define video size in different units or CSS variables?
Always when I write units like WV, or % script fails.

My goal is to set up video width in WV units and video height keep auto, so the video size adapts to a flexible layout.

Thanks for the reply!
Filip

This should work if you correctly target the canvas element that seeThru renders the content in.

You can either target this element using JavaScript when using what is passed to #ready(callback): https://github.com/m90/seeThru#additional-methods or target .seeThru-display elements. Also see the comment on namespaces I left in #57

Closing this for inactivity, if you need further help, feel free to reopen.