File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed
Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 66 </ head >
77
88 < body >
9- < div id ="heads-area ">
10- </ div >
119 </ body >
1210</ html >
Original file line number Diff line number Diff line change 11body {
2- display : flex;
3- align-content : stretch;
2+ height : 100% ;
3+ width : 100% ;
4+ margin : 0 ;
45}
56
6- # heads-area {
7- margin : 75px ;
8- flex-grow : 1 ;
9- }
10-
11- .person-frame-inner {
7+ .head-container {
128 display : inline-block;
139 position : absolute;
1410 animation : animate 10s linear 0s infinite alternate, animate2 9s linear 0s infinite;
1511}
1612
17- .person-frame-inner p {
18- text-align : center;
19- }
20-
21- .ball {
13+ .head {
2214 height : 150px ;
2315 width : 150px ;
2416 border-radius : 150px ;
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ $.ajax({
33 success : data => {
44 $ ( data ) . find ( "a" ) . attr ( "href" , ( _i , filename ) => {
55 if ( filename . match ( / \. ( j p e ? g | p n g | g i f ) $ / ) ) {
6- $ ( '#heads-area ' ) . append (
7- "<div class=\"person-frame-inner \"><img class=\"ball \" src=\"images/" + filename + "\"/></div>"
6+ $ ( 'body ' ) . append (
7+ "<div class=\"head-container \"><img class=\"head \" src=\"images/" + filename + "\"/></div>"
88 ) ;
99 }
1010 } ) ;
1111
12- let people = document . getElementsByClassName ( "person-frame-inner " ) ;
12+ let people = document . getElementsByClassName ( "head-container " ) ;
1313 for ( let person of people ) {
1414 person . style [ "animation-delay" ] = - Math . floor ( Math . random ( ) * 1000 ) + "s"
1515 }
You can’t perform that action at this time.
0 commit comments