Skip to content

Commit

Permalink
height
Browse files Browse the repository at this point in the history
  • Loading branch information
lenincompres committed Oct 23, 2024
1 parent b5201d8 commit e7a9920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CardScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ class CardScroll extends HTMLElement {
margin: "6em auto",
position: "relative",
width: "20em",
height: "30em",
minHeight: "30em",
section: items.map((item, i) => {
const diff = val => i - val;
const dist = val => items.length - Math.abs(diff(val));
const shade = val => Math.abs(diff(val)) / (items.length + 2);
return {
position: 'absolute',
width: "20em",
height: "30em",
backgroundColor: "white",
borderRadius: "2em",
boxShadow: "1px 1px 3px black",
Expand Down

0 comments on commit e7a9920

Please sign in to comment.