Rotating CSS Tesseract Jr.: Difference between revisions
Jump to navigation
Jump to search
Pseudosphere (talk | contribs) No edit summary |
Pseudosphere (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{JuniorPage}}{{#css:.scene{height:200px;margin:100px;perspective:600px;transform:scale(0.5);width:200px;}. | {{JuniorPage}}{{#css:.scene{height:200px;margin:100px;perspective:600px;transform:scale(0.5);width:200px;}.t-c{height:100%;position:absolute;transform-style:preserve-3d;width:100%;}.r-front,.r-right,.r-back,.r-left,.r-top,.r-bottom{height:200px;position:absolute;width:200px;}.t{animation:8s linear infinite rotateyly !important;height:100%;position:relative;transform-style:preserve-3d;width:100%;}.r-front{transform:rotateY(0deg)translateZ(100px);}.r-right{transform:rotateY(90deg)translateZ(100px);}.r-back{transform:rotateY(180deg)translateZ(100px);}.r-left{transform:rotateY(-90deg)translateZ(100px);}.r-top{transform:rotateX(90deg)translateZ(100px);}.r-bottom{transform:rotateX(-90deg)translateZ(100px);}@keyframes rotateyly{0%{transform:rotate3d(-1,1,0,45deg)rotateX(0turn);}100%{transform:rotate3d(-1,1,0,45deg)rotateX(1turn);} | ||
}@keyframes | }@keyframes c-front{100%,0%{transform:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);}6.25%{transform:matrix3d(0.9238795325112867,0,0,0.001913417161825449,0,1,0,0,0,0,1,0,38.268343236508976,0,0,1.0380602337443565);}12.5%{transform:matrix3d(0.7071067811865476,0,0,0.0035355339059327372,0,1,0,0,0,0,1,0,70.71067811865474,0,0,1.1464466094067263);}18.75%{transform:matrix3d(0.38268343236508984,0,0,0.004619397662556434,0,1,0,0,0,0,1,0,92.38795325112868,0,0,1.3086582838174552);}25%{transform:matrix3d(0,0,0,0.005,0,1,0,0,0,0,1,0,100,0,0,1.5);}31.25%{transform:matrix3d(-0.3826834323650897,0,0,0.004619397662556434,0,1,0,0,0,0,1,0,92.38795325112868,0,0,1.6913417161825448);}37.5%{transform:matrix3d(-0.7071067811865475,0,0,0.003535533905932738,0,1,0,0,0,0,1,0,70.71067811865476,0,0,1.8535533905932737);}43.75%{transform:matrix3d(-0.9238795325112867,0,0,0.0019134171618254495,0,1,0,0,0,0,1,0,38.26834323650899,0,0,1.9619397662556435);}50%{transform:matrix3d(-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,2);}56.25%{transform:matrix3d(-0.9238795325112868,0,0,-0.0019134171618254484,0,1,0,0,0,0,1,0,-38.26834323650897,0,0,1.9619397662556435);}62.5%{transform:matrix3d(-0.7071067811865477,0,0,-0.0035355339059327372,0,1,0,0,0,0,1,0,-70.71067811865474,0,0,1.853553390593274);}68.75%{transform:matrix3d(-0.38268343236509034,0,0,-0.004619397662556432,0,1,0,0,0,0,1,0,-92.38795325112865,0,0,1.6913417161825453);}75%{transform:matrix3d(0,0,0,-0.005,0,1,0,0,0,0,1,0,-100,0,0,1.5);}81.25%{transform:matrix3d(0.38268343236509,0,0,-0.004619397662556433,0,1,0,0,0,0,1,0,-92.38795325112866,0,0,1.308658283817455);}87.5%{transform:matrix3d(0.7071067811865474,0,0,-0.0035355339059327385,0,1,0,0,0,0,1,0,-70.71067811865477,0,0,1.1464466094067263);}93.75%{transform:matrix3d(0.9238795325112865,0,0,-0.001913417161825452,0,1,0,0,0,0,1,0,-38.26834323650904,0,0,1.0380602337443567);} | ||
}@keyframes | }@keyframes c-right{100%,0%{transform:matrix3d(0,0,0,0.005,0,0,-1,0,0,1,0,0,100,0,0,1.5);}6.25%{transform:matrix3d(-0.3826834323650897,0,0,0.004619397662556434,0,0,-1,0,0,1,0,0,92.38795325112868,0,0,1.6913417161825448);}12.5%{transform:matrix3d(-0.7071067811865475,0,0,0.003535533905932738,0,0,-1,0,0,1,0,0,70.71067811865476,0,0,1.8535533905932737);}18.75%{transform:matrix3d(-0.9238795325112867,0,0,0.0019134171618254495,0,0,-1,0,0,1,0,0,38.26834323650899,0,0,1.9619397662556435);}25%{transform:matrix3d(-1,0,0,0,0,0,-1,0,0,1,0,0,0,0,0,2);}31.25%{transform:matrix3d(-0.9238795325112868,0,0,-0.0019134171618254484,0,0,-1,0,0,1,0,0,-38.26834323650897,0,0,1.9619397662556435);}37.5%{transform:matrix3d(-0.7071067811865477,0,0,-0.0035355339059327372,0,0,-1,0,0,1,0,0,-70.71067811865474,0,0,1.853553390593274);}43.75%{transform:matrix3d(-0.38268343236509034,0,0,-0.004619397662556432,0,0,-1,0,0,1,0,0,-92.38795325112865,0,0,1.6913417161825453);}50%{transform:matrix3d(0,0,0,-0.005,0,0,-1,0,0,1,0,0,-100,0,0,1.5);}56.25%{transform:matrix3d(0.38268343236509,0,0,-0.004619397662556433,0,0,-1,0,0,1,0,0,-92.38795325112866,0,0,1.308658283817455);}62.5%{transform:matrix3d(0.7071067811865474,0,0,-0.0035355339059327385,0,0,-1,0,0,1,0,0,-70.71067811865477,0,0,1.1464466094067263);}68.75%{transform:matrix3d(0.9238795325112865,0,0,-0.001913417161825452,0,0,-1,0,0,1,0,0,-38.26834323650904,0,0,1.0380602337443567);}75%{transform:matrix3d(1,0,0,0,0,0,-1,0,0,1,0,0,0,0,0,1);}81.25%{transform:matrix3d(0.9238795325112867,0,0,0.0019134171618254497,0,0,-1,0,0,1,0,0,38.268343236509,0,0,1.0380602337443565);}87.5%{transform:matrix3d(0.7071067811865477,0,0,0.003535533905932737,0,0,-1,0,0,1,0,0,70.71067811865474,0,0,1.146446609406726);}93.75%{transform:matrix3d(0.38268343236509045,0,0,0.004619397662556432,0,0,-1,0,0,1,0,0,92.38795325112865,0,0,1.3086582838174547);} | ||
}@keyframes | }@keyframes c-back{100%,0%{transform:matrix3d(-1,0,0,0,0,-1,0,0,0,0,-1,0,0,0,0,2);}6.25%{transform:matrix3d(-0.9238795325112868,0,0,-0.0019134171618254484,0,-1,0,0,0,0,-1,0,-38.26834323650897,0,0,1.9619397662556435);}12.5%{transform:matrix3d(-0.7071067811865477,0,0,-0.0035355339059327372,0,-1,0,0,0,0,-1,0,-70.71067811865474,0,0,1.853553390593274);}18.75%{transform:matrix3d(-0.38268343236509034,0,0,-0.004619397662556432,0,-1,0,0,0,0,-1,0,-92.38795325112865,0,0,1.6913417161825453);}25%{transform:matrix3d(0,0,0,-0.005,0,-1,0,0,0,0,-1,0,-100,0,0,1.5);}31.25%{transform:matrix3d(0.38268343236509,0,0,-0.004619397662556433,0,-1,0,0,0,0,-1,0,-92.38795325112866,0,0,1.308658283817455);}37.5%{transform:matrix3d(0.7071067811865474,0,0,-0.0035355339059327385,0,-1,0,0,0,0,-1,0,-70.71067811865477,0,0,1.1464466094067263);}43.75%{transform:matrix3d(0.9238795325112865,0,0,-0.001913417161825452,0,-1,0,0,0,0,-1,0,-38.26834323650904,0,0,1.0380602337443567);}50%{transform:matrix3d(1,0,0,0,0,-1,0,0,0,0,-1,0,0,0,0,1);}56.25%{transform:matrix3d(0.9238795325112867,0,0,0.0019134171618254497,0,-1,0,0,0,0,-1,0,38.268343236509,0,0,1.0380602337443565);}62.5%{transform:matrix3d(0.7071067811865477,0,0,0.003535533905932737,0,-1,0,0,0,0,-1,0,70.71067811865474,0,0,1.146446609406726);}68.75%{transform:matrix3d(0.38268343236509045,0,0,0.004619397662556432,0,-1,0,0,0,0,-1,0,92.38795325112865,0,0,1.3086582838174547);}75%{transform:matrix3d(0,0,0,0.005,0,-1,0,0,0,0,-1,0,100,0,0,1.4999999999999998);}81.25%{transform:matrix3d(-0.3826834323650899,0,0,0.004619397662556434,0,-1,0,0,0,0,-1,0,92.38795325112868,0,0,1.6913417161825448);}87.5%{transform:matrix3d(-0.7071067811865467,0,0,0.003535533905932742,0,-1,0,0,0,0,-1,0,70.71067811865484,0,0,1.8535533905932733);}93.75%{transform:matrix3d(-0.9238795325112864,0,0,0.0019134171618254525,0,-1,0,0,0,0,-1,0,38.268343236509054,0,0,1.9619397662556433);} | ||
}@keyframes | }@keyframes c-left{100%,0%{transform:matrix3d(0,0,0,-0.005,0,0,1,0,0,-1,0,0,-100,0,0,1.5);}6.25%{transform:matrix3d(0.38268343236509,0,0,-0.004619397662556433,0,0,1,0,0,-1,0,0,-92.38795325112866,0,0,1.308658283817455);}12.5%{transform:matrix3d(0.7071067811865474,0,0,-0.0035355339059327385,0,0,1,0,0,-1,0,0,-70.71067811865477,0,0,1.1464466094067263);}18.75%{transform:matrix3d(0.9238795325112865,0,0,-0.001913417161825452,0,0,1,0,0,-1,0,0,-38.26834323650904,0,0,1.0380602337443567);}25%{transform:matrix3d(1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1);}31.25%{transform:matrix3d(0.9238795325112867,0,0,0.0019134171618254497,0,0,1,0,0,-1,0,0,38.268343236509,0,0,1.0380602337443565);}37.5%{transform:matrix3d(0.7071067811865477,0,0,0.003535533905932737,0,0,1,0,0,-1,0,0,70.71067811865474,0,0,1.146446609406726);}43.75%{transform:matrix3d(0.38268343236509045,0,0,0.004619397662556432,0,0,1,0,0,-1,0,0,92.38795325112865,0,0,1.3086582838174547);}50%{transform:matrix3d(0,0,0,0.005,0,0,1,0,0,-1,0,0,100,0,0,1.4999999999999998);}56.25%{transform:matrix3d(-0.3826834323650899,0,0,0.004619397662556434,0,0,1,0,0,-1,0,0,92.38795325112868,0,0,1.6913417161825448);}62.5%{transform:matrix3d(-0.7071067811865467,0,0,0.003535533905932742,0,0,1,0,0,-1,0,0,70.71067811865484,0,0,1.8535533905932733);}68.75%{transform:matrix3d(-0.9238795325112864,0,0,0.0019134171618254525,0,0,1,0,0,-1,0,0,38.268343236509054,0,0,1.9619397662556433);}75%{transform:matrix3d(-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,2);}81.25%{transform:matrix3d(-0.9238795325112867,0,0,-0.0019134171618254492,0,0,1,0,0,-1,0,0,-38.26834323650898,0,0,1.9619397662556435);}87.5%{transform:matrix3d(-0.7071067811865471,0,0,-0.0035355339059327394,0,0,1,0,0,-1,0,0,-70.71067811865478,0,0,1.8535533905932735);}93.75%{transform:matrix3d(-0.38268343236509056,0,0,-0.004619397662556432,0,0,1,0,0,-1,0,0,-92.38795325112864,0,0,1.6913417161825453);} | ||
} | } | ||
}}<div class="scene"><div class=" | }}<div class="scene"><div class="t"><div class="t-c" style="animation:8s step-end infinite c-front !important;"><div class="r-front" style="background:#75A7;"></div><div class="r-back" style="background:#5427;"></div><div class="r-right" style="background:#0C37;"></div><div class="r-left" style="background:#1B77;"></div><div class="r-top" style="background:#0457;"></div><div class="r-bottom" style="background:#5337;"></div></div><div class="t-c" style="animation:8s step-end infinite c-right !important;"><div class="r-front" style="background:#0477;"></div><div class="r-back" style="background:#FD27;"></div><div class="r-top" style="background:#7B37;"></div><div class="r-bottom" style="background:#0F47;"></div></div><div class="t-c" style="animation:8s step-end infinite c-back !important;"><div class="r-front" style="background:#34E7;"></div><div class="r-back" style="background:#3E97;"></div><div class="r-right" style="background:#A6B7;"></div><div class="r-left" style="background:#4107;"></div><div class="r-top" style="background:#F987;"></div><div class="r-bottom" style="background:#EAD7;"></div></div><div class="t-c" style="animation:8s step-end infinite c-left !important;"><div class="r-front" style="background:#F857;"></div><div class="r-back" style="background:#13D7;"></div><div class="r-top" style="background:#FE97;"></div><div class="r-bottom" style="background:#E8E7;"></div></div></div></div> |