• 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.
    JustAnABDL
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:France
    #2
    2024-02-23, 06:06 PM (This post was last modified: 2024-02-23, 06:07 PM by JustAnABDL. Edited 1 time in total.)
    Okay so, the problem here is the min-height, but when i change 100% to fit-content it still doesn't work, it doesn't cover all the page.
    Why ? Please.
    Tim
    Offline

    Community Moderator

    Posts: 49
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    #3
    2024-02-23, 06:47 PM (This post was last modified: 2024-02-23, 06:51 PM by Tim.)
    Can you try to use min-height: 100vh?

    I dont actually understand the problem to be honest. What is it what you want to achieve and what is it that is not working with min-height: 100%?
    Not your average hoarder.

    Storage: 8x18TB RAIDz2 + 2x16TB Mirror + 512GB NVMe OS drive
    CPU: Ryzen 1700
    Cooler: Scythe Fuma 2
    Motherboard: Gigabyte AORUS B450 PRO
    RAM: DDR4; 2x8GB + 2x16GB
    Tim
    Offline

    Community Moderator

    Posts: 49
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    #4
    2024-02-23, 06:55 PM (This post was last modified: 2024-02-23, 06:55 PM by Tim. Edited 1 time in total.)
    @JustAnABDL You made a typo background-attachment: fixedl; should be background-attachment: fixed;.
    Not your average hoarder.

    Storage: 8x18TB RAIDz2 + 2x16TB Mirror + 512GB NVMe OS drive
    CPU: Ryzen 1700
    Cooler: Scythe Fuma 2
    Motherboard: Gigabyte AORUS B450 PRO
    RAM: DDR4; 2x8GB + 2x16GB
    JustAnABDL
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:France
    #5
    2024-02-23, 08:03 PM (This post was last modified: 2024-02-23, 08:26 PM by JustAnABDL. Edited 2 times in total.)
    Thanks for responding. I modified the post.
    Okay and also to use a background image, I can use this code but the problem is that it modifies all the other pages:

    .backdropImage {
    display: none;
    }

    .backgroundContainer {
    background-color: rgba(0, 0, 0, 0);
    background-image: url('https://i.ytimg.com/vi/avCWDDox1nE/maxresdefault.jpg');
    filter: blur(10px);
    background-size: cover;
    }

    But do you know how I can modify this code to not see the image on individual films and series.
    Thanks for your help :3
    Tim
    Offline

    Community Moderator

    Posts: 49
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    #6
    2024-02-23, 08:37 PM (This post was last modified: 2024-02-23, 08:40 PM by Tim. Edited 3 times in total.)
    Which theme do you use? Because min-height 100% works for me. I dont see the artifacts when i scroll down on a movie page.

    [Image: 28O2dM3.png]
    Not your average hoarder.

    Storage: 8x18TB RAIDz2 + 2x16TB Mirror + 512GB NVMe OS drive
    CPU: Ryzen 1700
    Cooler: Scythe Fuma 2
    Motherboard: Gigabyte AORUS B450 PRO
    RAM: DDR4; 2x8GB + 2x16GB
    Tim
    Offline

    Community Moderator

    Posts: 49
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    #7
    2024-02-23, 08:42 PM (This post was last modified: 2024-02-23, 08:43 PM by Tim. Edited 1 time in total.)
    Quote:But do you know how I can modify this code to not see the image on individual films and series.

    I thought you wanted to have this effect shown only on the individual movies and episodes?
    Not your average hoarder.

    Storage: 8x18TB RAIDz2 + 2x16TB Mirror + 512GB NVMe OS drive
    CPU: Ryzen 1700
    Cooler: Scythe Fuma 2
    Motherboard: Gigabyte AORUS B450 PRO
    RAM: DDR4; 2x8GB + 2x16GB
    JustAnABDL
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:France
    #8
    2024-02-23, 11:40 PM
    Hello, so I didn't figure out how to do what I wanted (and also I don't know how to explain sorry I'm a bit dumb x)
    but I found an amazing theme on reddit : https://www.reddit.com/r/jellyfin/commen...me_scyfin/
    And I think that I'll be using it. It's so beautiful.

    But thanks for your help anyway,
    People like you who take their time to help others are amazing :3

    Bye bye
    Smiling-face
    Tim
    Offline

    Community Moderator

    Posts: 49
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    #9
    2024-02-25, 02:52 PM
    You're very welcome!
    Not your average hoarder.

    Storage: 8x18TB RAIDz2 + 2x16TB Mirror + 512GB NVMe OS drive
    CPU: Ryzen 1700
    Cooler: Scythe Fuma 2
    Motherboard: Gigabyte AORUS B450 PRO
    RAM: DDR4; 2x8GB + 2x16GB
    JashLathiya
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Jun
    Reputation: 0
    Country:India
    #10
    2024-06-11, 09:51 AM
    Can I get this Theme or CSS?
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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