JSDM

HTML

6
 
1
.wrapper
2
  .item.ryze
3
  .item.irelia
4
  .item.jinx
5
  .item.katarina
6
  .item.ziggs
!

CSS

x
 
1
$ryze: "http://lolwp.com/wp-content/uploads/Dark-Crystal-Ryze.jpg";
2
$irelia: "http://lolwp.com/wp-content/uploads/Irelia-fanart.jpg";
3
$jinx: "http://lolwp.com/wp-content/uploads/2013/09/Jinx-Classic.jpg";
4
$katarina: "http://lolwp.com/wp-content/uploads/Mercenary-Katarina-Updated.jpg";
5
$ziggs: "http://lolwp.com/wp-content/uploads/Ziggs_Splash_0.jpg";
6
7
@import url(http://fonts.lug.ustc.edu.cn/css?family=Raleway:100,300);
8
9
* {
10
  margin: 0;
11
  padding: 0;
12
  border: 0;
13
  outline: 0;
14
  box-sizing: border-box;
15
}
16
17
html, body {
18
  height: 100%;
19
}
20
21
.wrapper {
22
  display: flex;
23
  flex-direction: row;
24
  align-items: stretch;
25
  height: 100%;
26
  .item {
27
    display: flex;
28
    flex-grow: 1;
29
    transition: all .5s ease;
30
    background-size: cover;
31
    background-position: center;
32
    background-repeat: no-repeat;
33
    position: relative;
34
    overflow: hidden;
35
    &:hover {
36
      flex-grow: 4;
37
      box-shadow: inset 0 0 20px #000;
38
    }
39
    &:after {
40
      content: "";
41
      width: 200%;
42
      height: 43.33%;
43
      background-color: rgba(#000, 0.75);
44
      left: -50%;
45
      bottom: -10%;
46
      position: absolute;
47
      transform: rotate(-15deg);
48
      color: #fff;
49
      text-align: center;
50
      padding-top: 20px;
51
      text-transform: uppercase;
52
      font-size: 40px;
53
      font-family: 'Raleway';
54
      font-weight: 100;
55
    }
56
    &.ryze {
57
      background-image: url($ryze);
58
      background-position: 70% center;
59
      &:after {
60
        content: "Ryze";
61
      }
62
    }
63
    &.irelia {
64
      background-image: url($irelia);
65
      background-position: 45% center;
66
      &:after {
67
        content: "Irelia";
68
      }
69
    }
70
    &.jinx {
71
      background-image: url($jinx);
72
      background-position: 70% center;
73
      &:after {
74
        content: "Jinx";
75
      }
76
    }
77
    &.katarina {
78
      background-image: url($katarina);
79
      background-position: 70% center;
80
      &:after {
81
        content: "Katarina";
82
      }
83
    }
84
    &.ziggs {
85
      background-image: url($ziggs);
86
      background-position: 75% center;
87
      &:after {
88
        content: "Ziggs";
89
      }
90
    }
91
  }
92
}
!
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

1
 
1
!
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................