-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
49 lines (43 loc) · 1.06 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* create wrapper */
.brush-wrap {
position: relative;
display: inline-block;
padding: 3rem;
}
#bck{
background: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQRxT59mImkjzq2SVs5urmYfDsmt9-9gxBM7A&usqp=CAU);
}
#core{
margin-left: 600px;
/* text-align: center; */
/* position: center; */
}
#img{
height: 250px;
width: 250px;
border-radius: 16px;
}
/* applying example animation (indefinite variant) */
.brush-wrap.brush-wrap--indefinite:before {
clip-path: url(#clip-indefinite);
}
/* clipping/animating object (pseudo element) */
.brush-wrap:before {
content: '';
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
background: darkorange;
z-index: -1;
clip-path: url(#clip); /* applying clip animation */
}
.brush-wrap p {
font-size: 2rem;
text-transform: uppercase;
margin: 0;
color: white;
font-style: italic;
filter: drop-shadow(0px 0px 2px orange);
}