Skip to content

Commit 7d50190

Browse files
committed
anime css
1 parent 891f094 commit 7d50190

File tree

3 files changed

+32
-31
lines changed

3 files changed

+32
-31
lines changed

src/App.css

-30
Original file line numberDiff line numberDiff line change
@@ -39,36 +39,6 @@ html {
3939
justify-content: space-around;
4040
}
4141

42-
.anime {
43-
width: 25%;
44-
padding: 16px;
45-
}
46-
47-
.anime__name {
48-
color: #e6700f;
49-
font-size: 18px;
50-
}
51-
52-
.anime__img--wrapper {
53-
border-radius: 8px;
54-
overflow: hidden;
55-
margin-bottom: 8px;
56-
box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
57-
max-height: 380px;
58-
}
59-
60-
.anime__img {
61-
width: 100%;
62-
height: 100%;
63-
transform: scale(1.1);
64-
transition: all 300ms ease;
65-
}
66-
67-
.anime:hover .anime__img {
68-
filter: brightness(80%);
69-
opacity: 0.86;
70-
transform: scale(1.2);
71-
}
7242

7343
.container {
7444
padding: 24px 24px;

src/components/ui/Anime.css

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.anime {
2+
width: 25%;
3+
padding: 16px;
4+
}
5+
6+
.anime__name {
7+
color: #e6700f;
8+
font-size: 18px;
9+
}
10+
11+
.anime__img--wrapper {
12+
border-radius: 8px;
13+
overflow: hidden;
14+
margin-bottom: 8px;
15+
box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
16+
max-height: 380px;
17+
}
18+
19+
.anime__img {
20+
width: 100%;
21+
height: 100%;
22+
transform: scale(1.1);
23+
transition: all 300ms ease;
24+
}
25+
26+
.anime:hover .anime__img {
27+
filter: brightness(80%);
28+
opacity: 0.86;
29+
transform: scale(1.2);
30+
}
31+

src/components/ui/Anime.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import "../src/App.css";
2+
import "Anime.css";
33
import { Link } from "react-router-dom";
44

55
function Anime({ title, cover, id }) {

0 commit comments

Comments
 (0)