diff --git a/css/index.scss b/css/index.scss index 8f165ce..3d97d1a 100644 --- a/css/index.scss +++ b/css/index.scss @@ -1,19 +1,48 @@ .particles { background: #fafafa; - border: 5px solid #fafafa; - border-radius: 3px; - height: 400px; + // background: url('../res/seigaiha.svg'); + background-size: 100px 50px; + border-radius: 50px; + height: 600px; margin: 10px auto; position: relative; - width: 90%; + width: 600px; } .particle { - $side: 20px; + $side: 100px; - background: url('../res/seahorse.svg'); - background-size: $side $side; + background: url('../res/seahorse.svg') no-repeat center center; + background-size: 20px 20px; + border-color: salmon; + border-style: dashed; + border-radius: 50px; + border-width: 1px; height: $side; position: absolute; width: $side; } + +.highlight { + $h: 30px; + animation: pulse 0.5s 1; + border-radius: $h / 2; + position: absolute; +} + +@keyframes pulse { + $h: 30px; + + from { + border: 4px solid lightgreen; + height: $h; + margin: (-1 * $h / 2) 0 0 (-1 * $h / 2); + width: $h; + } + + to { + height: 0px; + margin: 0; + width: 0px; + } +} diff --git a/css/style.css b/css/style.css index dba6fc6..889bbcb 100644 --- a/css/style.css +++ b/css/style.css @@ -1,18 +1,38 @@ .particles { background: #fafafa; - border: 5px solid #fafafa; - border-radius: 3px; - height: 400px; + background-size: 100px 50px; + border-radius: 50px; + height: 600px; margin: 10px auto; position: relative; - width: 90%; } + width: 600px; } .particle { - background: url(../res/seahorse.svg); + background: url(../res/seahorse.svg) no-repeat center center; background-size: 20px 20px; - height: 20px; + border-color: salmon; + border-style: dashed; + border-radius: 50px; + border-width: 1px; + height: 100px; position: absolute; - width: 20px; } + width: 100px; } + +.highlight { + animation: pulse 0.5s 1; + border-radius: 15px; + position: absolute; } + +@keyframes pulse { + from { + border: 4px solid lightgreen; + height: 30px; + margin: -15px 0 0 -15px; + width: 30px; } + to { + height: 0px; + margin: 0; + width: 0px; } } * { box-sizing: border-box; margin: 0; diff --git a/index.html b/index.html index 777f270..1879ef1 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,30 @@
+