From 7867b6c613cf2610af72efc1cb074f7ec2078af3 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sat, 18 Sep 2021 17:47:54 +0200 Subject: hack together the "whip-pan" --- webAO/styles/client.css | 58 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 18 deletions(-) (limited to 'webAO/styles/client.css') diff --git a/webAO/styles/client.css b/webAO/styles/client.css index b2866a7..ba7a4a0 100644 --- a/webAO/styles/client.css +++ b/webAO/styles/client.css @@ -180,14 +180,25 @@ } #client_court { + position: absolute; + height: 100%; + top: 0; + left: 0; +} + +#client_stitch_court { position: absolute; height: 100%; width: 100%; top: 0; left: 0; - object-fit: cover; - transition: 0.5s ease-in-out; - transition-property: object-position; +} + +#client_stitch_court>img { + position: absolute; + height: 100%; + width: 100%; + bottom: 0; } .def_court { @@ -202,32 +213,23 @@ object-position: right; } -#client_pair_char { - position: absolute; - height: 100%; - width: 100%; - bottom: 0; -} - -#client_pair_char>img { +#client_charview { position: absolute; height: 100%; width: 100%; bottom: 0; - left: 0; - object-fit: cover; - object-position: 50% 0; + transition: 0.5s ease-in-out; + transition-property: left; } -#client_char { +.client_char { position: absolute; height: 100%; width: 100%; bottom: 0; - left: 0; } -#client_char>img { +.client_char>img { position: absolute; height: 100%; width: 100%; @@ -245,7 +247,27 @@ right: 0; } -#client_bench { +#client_def_bench, #client_def_char, #client_def_pair_char, #client_court_def { + left: 0; +} + +#client_court_deft { + left: 100%; +} + +#client_wit_bench, #client_wit_char, #client_wit_pair_char, #client_court_wit { + left: 200%; +} + +#client_court_prot { + left: 100%; +} + +#client_pro_bench, #client_pro_char, #client_pro_pair_char, #client_court_pro { + left: 400%; +} + +.client_bench { position: absolute; height: auto; width: 100%; -- cgit