[Resolved] Parallax melting with content

Home Forums Support [Resolved] Parallax melting with content

Home Forums Support Parallax melting with content

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #693680
    Linus

    Hi,

    I’m trying to create this effect: https://www.hemfrid.se/stadtjanster/flyttstadning/
    Notice how the background “header” image “melts” with the content. What is a good way to achieve this?

    This is my website: https://hemtips.se/diskmaskiner/
    Imagine that the table and a background image blending together. That’s what I’m going for.

    Let me know if you need more info!

    Thank you πŸ™‚

    #693798
    Leo
    Staff
    Customer Support

    Hi there,

    Not exactly sure which part you are referring to but does this help?
    https://docs.generatepress.com/article/page-hero-examples/

    Let me know πŸ™‚

    #694384
    Linus

    Hi,

    Thanks for the reply and sorry for not being clear. Please take a look at the image following image
    https://hemtips.se/wp-content/uploads/2018/10/example-image.jpg

    This is the style I’m trying to achieve. I want part of a header image to be behind the product table πŸ™‚

    Any ideas or further questions? πŸ™‚

    #694399
    Leo
    Staff
    Customer Support

    Should be doable.

    Can you set the header image first then I can give you some CSS?

    #694402
    Linus

    Thanks!

    I’ll update this reply with another URL that is a post and slightly different in a minute – if it’s not possible on this one.

    https://hemtips.se/testa1/ (page – contained width)
    https://hemtips.se/2018/10/05/draft/ (post – full width)

    #694619
    Leo
    Staff
    Customer Support

    I don’t see a header on testa1.

    But for draft, I assume you will will hide the entry header (title author etc)? then you try CSS like this:

    @media (min-width: 769px) {
        .entry-content {
            margin-top: -200px;
        }
    }

    Is there a specific reason to use post instead of page? Just curious….

    Let me know πŸ™‚

    #694941
    Linus

    Thank you, getting there! Is there a way to make sure it looks good on all devices? By using margin-top, the content box will move up. Not using px would maybe be optimal if there’s a solution, otherwise I’ll have to make a lot of @media designs.

    No specific reason for post/page, just thought it might make it easier for us to find a solution πŸ™‚

    https://hemtips.se/testa1/

    #694995
    Leo
    Staff
    Customer Support

    I guess you could try using % instead of px?

    I find using % makes the height of the screen hard to deal with but you can definitely try.

    #695032
    Linus

    Alright thanks, let me know if come across another solution please πŸ™‚

    #695043
    Leo
    Staff
    Customer Support

    Those are basically the only 2 common solutions.

    You will have to test it out and view it on multiple device to see which one will suit you the best πŸ™‚

    Glad I could help!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.