Welcome to TalkGraphics.com
Results 1 to 10 of 31

Hybrid View

  1. #1

    Default Re: Make Video Stretch to Width of Webpage

    Now that I have the Video banner width displayed properly, one more issue.

    In the body of page is text and image that are animated to “fade in” on the “Reveal/Scroll” tab of Web Animation dialogue box.

    Since adding video banner yesterday, when scrolling down the page, the body text scrolls up and on top of video banner.

    http://draft-review.com/

    I will keep working on it. Any thoughts on how to fix this?

    *UPDATE: I got it! On the header script, I set position: absolute;; rather than position: fixed;;

    All seems to be working now!
    Last edited by hotrodsue; 12 May 2023 at 05:28 PM.

  2. #2

    Default Re: Make Video Stretch to Width of Webpage

    Gent's, thank you for this post, this is something I'm looking for a long time to my website and i'm close to get there, however I think I'm doing something wrong, because if I use @Acorn solution, even if I add the transform: translate(-50%); bit I always have a wite space for one of the sides, the demo file work like a charm, but if I make a mobile variant it also doesn't work, in the main website.
    If I use @initiostar code it works fine and if I change ""position: fixed"" to absolute it scrol up (as I want) Problem is that if I see in a 1920 x 1080 it look great, but if I see it in a wider screen or if I restore down the browser window size (play with size) it doesn't stretch like expected.

    I wonder if there is some solution for this, I don't see a Xara widget for it, so I guess it must be done with a placeholder.
    I must say, that even if I work with Xara for 10 years I'm not a expert with code, I only use it to build my business website.

    I also have a dumm question, but how can I do to insert my video, is it from Vimeo, or Youtube? If so, can someone point me some to some link to see how I can do it?

    Thank you very much.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,907

    Default Re: Make Video Stretch to Width of Webpage

    Quote Originally Posted by Verissimo View Post
    Gent's, thank you for this post, this is something I'm looking for a long time to my website and i'm close to get there, however I think I'm doing something wrong, because if I use @Acorn solution, even if I add the transform: translate(-50%); bit I always have a wite space for one of the sides, the demo file work like a charm, but if I make a mobile variant it also doesn't work, in the main website.
    If I use @initiostar code it works fine and if I change ""position: fixed"" to absolute it scrol up (as I want) Problem is that if I see in a 1920 x 1080 it look great, but if I see it in a wider screen or if I restore down the browser window size (play with size) it doesn't stretch like expected.

    I wonder if there is some solution for this, I don't see a Xara widget for it, so I guess it must be done with a placeholder.
    I must say, that even if I work with Xara for 10 years I'm not a expert with code, I only use it to build my business website.

    I also have a dumm question, but how can I do to insert my video, is it from Vimeo, or Youtube? If so, can someone point me some to some link to see how I can do it?

    Thank you very much.
    Verissimo, you are probably using the same id in Main and Variant. Make each different.. You should get both working and the white space disappear.
    This approach is for MP4 and not Vimeo or YT. Both add in their code and are not likely to then work. There may be on-line tools that can extract the mp4 path, which you can then apply.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4

    Default Re: Make Video Stretch to Width of Webpage

    Quote Originally Posted by Acorn View Post
    Verissimo, you are probably using the same id in Main and Variant. Make each different.. You should get both working and the white space disappear.
    This approach is for MP4 and not Vimeo or YT. Both add in their code and are not likely to then work. There may be on-line tools that can extract the mp4 path, which you can then apply.

    Acorn
    Hi again Acorn, and thank you for your answer. You are the best, it worked.
    I did from a blank page, created the variant 1st and then copy your placeholder. Since i'm not using a video for the mobile variantit is working as expected.
    Just for reference, if I may, how can I check the id for variants you mention? if I'm thinking correctly, is in Body in this case - id="heroVideo-top" - and I must change the name here. But since I delet the placeholder from the variant, shouldn't it work as expected?


    Now all I have to do is search where I can find the online tools to place my video.

    Thanks again.
    Last edited by Verissimo; 19 June 2023 at 10:47 PM.

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,907

    Default Re: Make Video Stretch to Width of Webpage

    Quote Originally Posted by Verissimo View Post
    Hi again Acorn, and thank you for your answer. You are the best, it worked.
    I did from a blank page, created the variant 1st and then copy your placeholder. Since i'm not using a video for the mobile variantit is working as expected.
    Just for reference, if I may, how can I check the id for variants you mention? if I'm thinking correctly, is in Body in this case - id="heroVideo-top" - and I must change the name here. But since I delet the placeholder from the variant, shouldn't it work as expected?

    Now all I have to do is search where I can find the online tools to place my video.
    Thanks again.
    Verissimo, I was overthinking the solution. You do not need to change the ID, just have a Variant, even if it does not have a video.
    You ought to be able to delete the Variant Placeholder.
    If you include a single Variant, then even if not including a Hero Video (don't), then you need to add transform: translate(-50%); to the CSS style code.
    What I did not stress if if you add in a Variant Placeholder, the IDs need to be different. I did mention it when placing multiple videos...
    ...yes, you change the ID value as you indicated.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6

    Default Re: Make Video Stretch to Width of Webpage

    So, when I say above "Now all I have to do is search where I can find the online tools to place my video" I wasn´t expecting that it can be so complicated for my humble neurons.

    If I´m understanding correctly, I must have my video running somewere in MP4 (that makes sense to me) now my problem is to make it run in loop, if, it has to be in HTML5. Since I don´t understand a line of code (even if I use it / modify ... sometimes).

    I'm in the mood to learn some basics, enough to make the video and put it on some platform like videojs.com, but before doing that, and as for me it's a whole new world, before I start working on it, I'd like to know if anyone knows any platform or service, that even being paid, simplify my life.

    Thank you all.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •