• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions CSS - Background image fixed during scroll

     
    • 0 Vote(s) - 0 Average

    CSS - Background image fixed during scroll

    JustAnABDL
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:France
    #1
    2024-02-23, 04:01 PM (This post was last modified: 2024-02-23, 08:11 PM by JustAnABDL. Edited 8 times in total.)
    TEXT EDITED :

    Okay so basically I modified the CSS code of a certain theme that I've seen on reddit and now it's looking like that :

    [Image: 1.png]

    And I want that when I scroll down the movie background image and this image

    [Image: mask.png]

    move in the point of view of the user, but it doesn't.
    So I tried to firstly modify the code of the image above (named mask.png) and the problem is the height. It technically works with this for the mask.png but I have to specify a certain height and the height changes for each film, so I search a way that the height is the size of the size of the page when you scroll.


    When I put 200% for example it looks like that on this film (so the correct height would be around 210% - 220%) but it changes for each film.
     
    [Image: 3.png]


    This is the code :

    .layout-desktop .itemBackdrop:after {
      background: url("https://i.ibb.co/48fxbrV/mask.png");
      background-size: cover;
      background-attachment: fixed;
      background-repeat: no-repeat;
      min-height: 200%;
    }

    Thanks for responding, I tried what you said but it doesn't work unfortunately :C.
    When I try 100vh it's too small and thanks for the typo, I didn't see that before.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    CSS - Background image fixed during scroll - by JustAnABDL - 2024-02-23, 04:01 PM
    RE: CSS - Background image fixed during scroll - by JustAnABDL - 2024-02-23, 06:06 PM
    RE: CSS - Background image fixed during scroll - by Tim - 2024-02-23, 06:47 PM
    RE: CSS - Background image fixed during scroll - by Tim - 2024-02-23, 06:55 PM
    RE: CSS - Background image fixed during scroll - by JustAnABDL - 2024-02-23, 08:03 PM
    RE: CSS - Background image fixed during scroll - by Tim - 2024-02-23, 08:37 PM
    RE: CSS - Background image fixed during scroll - by Tim - 2024-02-23, 08:42 PM
    RE: CSS - Background image fixed during scroll - by JustAnABDL - 2024-02-23, 11:40 PM
    RE: CSS - Background image fixed during scroll - by Tim - 2024-02-25, 02:52 PM
    RE: CSS - Background image fixed during scroll - by JashLathiya - 2024-06-11, 09:51 AM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode