⦻Gruftie⦻'s profile picture

Published by

published
updated

Category: Web, HTML, Tech

DVD Poster Collection Display Code

Carrie (1976)
The Shining (1980)
The Silence of the Lambs (1991)
Interview with the Vampire (1994)
Scream (1996)
Fight Club (1999)
The Talented Mr. Ripley (1999)
American Psycho (2000)
Like Minds (2006)
Jennifer's Body (2009)
Humanist Vampire Seeking Consenting Suicidal Person (2023)
I Saw the TV Glow (2024)
Leviticus (2026)
Here is code for you to have these poster collections on your page. I modified the dimensions of the cd collection layout from this post: https://blog.spacehey.com/entry?id=1394318.

Into the sections that say "IMAGE URL HERE" you will paste your posters' url. In the sections that say "Title(Year)" you can write the text that pops up when you hover over it, like the name and release date or anything else you want. 


<!-- Layout by vimcy-->



<!----- Film Posters ---->


<style>

#poster-collection * {

    all: unset;

  }

 

  #poster-collection {

    all: initial!important;

    width: 100%!important;

    height: 240px!important;

    margin: 30px 0!important;

    display: flex!important;

    flex-direction: row!important;

    position: relative!important;

    margin-left: 2px!important;

  }

 

  #poster-collection .poster {

      all:unset!important;

    perspective: 500px !important;

    width: 20px!important;

    transition: width 0.5s!important;

  }

 

  #poster-collection .poster:hover {

    width: 133px!important;

  }


  #poster-collection img {

      all:unset!important;

    transition: transform 0.5s, width 0.5s, height 0.5s, margin-top 0.5s!important;

    height: 200px!important;

    width: 133px!important;

    transform: rotateX(0deg) rotateY(5deg)!important;

    transform-style: preserve-3d!important;

    border-radius: 0px!important;

    border: 0px solid rgba(0, 0, 0, 0.1)!important;

    


  }

 #poster-collection .poster:after {

content: "";

background: url('https://file.garden/Z3nKOoT67S-mYEoe/shiny-crumpled-foil-texture-png.png'), 

linear-gradient(150deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2), 40%, 

rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6));

background-size: contain, cover;

position: absolute;

top: 0;

left: 0;

transition: transform 0.5s, width 0.5s, height 0.5s, margin-top 0.5s!important;

    width: 133px!important;

    height: 200px!important;

    transform: rotateX(0deg) rotateY(5deg)!important;

    transform-style: preserve-3d!important;

    border: 0px solid rgba(0, 0, 0, 0)!important;

object-fit: cover!important;

}

  #poster-collection .poster:hover img {

    transform: rotateX(0deg) rotateY(1deg)!important;

    width: 133px!important;

    height: 200px!important;

    margin-top: -25px!important;

 

  }

   #poster-collection .poster:hover:after {

    transform: rotateX(0deg) rotateY(1deg)!important;

    width: 133px!important;

    height: 200px!important;

    margin-top: -25px!important;

  }

  #poster-collection .title {

    color: #000000;

    display: block;

    visibility: hidden;

    position: absolute;

    bottom: 0px;

    text-align: center;

    width: 100%;

    padding-left: 6px;

  }

 

  #poster-collection .poster:nth-child(n):hover + .title {

    visibility: visible;

  }


</style>

<div id="poster-collection">


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


 <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


  <div class="poster">

    <img src="IMAGE URL HERE">

  </div>

  <div class="title">Title (Year)</div>


</div>


2 Kudos

—

Comments

Displaying 0 of 0 comments ( View all | Add Comment )