Kosten
Воскресенье, 05 Апреля 2020, 19:19 | Сообщение 1
Оригинальная подборка красивых эффектов на CSS/SVG, которые заключаются во вращение глобусов в разном дизайне. Что можно подобрать тот стиль, который подойдет под дизайн сайта. Ведь много тематических направлений, и здесь анимационный глобус отлично подойдет под путешествии, что на сайте просто шикарно будет смотреться. Изначально уже была тема Эффект вращения земного шара на CSS , где эта идет как дополнение. HTMLКод
<div class="container"> <!----0---> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back"></div> <div class="globe__worldmap__front"></div> </div> <div class="globe__inner_shadow"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!-----1----> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere spehere1"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg1"></div> <div class="globe__worldmap__front backimg1"></div> </div> <div class="globe__inner_shadow"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------2-----> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere spehere2"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg2"></div> <div class="globe__worldmap__front backimg2"></div> </div> <div class="globe__inner_shadow"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------3-----> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere spehere3"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg3"></div> <div class="globe__worldmap__front backimg3"></div> </div> <div class="globe__inner_shadow"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------4-----> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg4"></div> <div class="globe__worldmap__front backimg4"></div> </div> <div class="globe__inner_shadow"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------5-----> <div class="globe__placeholder"> <div class="globe__container bg5"> <div class="globe"> <div class="globe__sphere spehere5"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg5"></div> <div class="globe__worldmap__front backimg5"></div> </div> <div class="globe__inner_shadow innersha5"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------6-----> <div class="globe__placeholder"> <div class="globe__container bg5"> <div class="globe"> <div class="globe__sphere spehere6"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg6"></div> <div class="globe__worldmap__front backimg6"></div> </div> <div class="globe__inner_shadow innersha5"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------7-----> <div class="globe__placeholder"> <div class="globe__container"> <div class="globe"> <div class="globe__sphere spehere7"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg7"></div> <div class="globe__worldmap__front backimg7"></div> </div> <div class="globe__inner_shadow innersha7"></div> <div class="globe__reflections__top"></div> </div> </div> </div> <!------8-----> <div class="globe__placeholder"> <div class="globe__container bg8"> <div class="globe"> <div class="globe__sphere spehere8"></div> <div class="globe__outer_shadow"></div> <div class="globe__reflections__bottom"></div> <div class="globe__worldmap"> <div class="globe__worldmap__back backimg8"></div> <div class="globe__worldmap__front backimg8"></div> </div> <div class="globe__inner_shadow innersha8"></div> <div class="globe__reflections__top"></div> </div> </div> </div> </div>
CSS
Код
/** Globe Elements **/ .globe__placeholder { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; overflow: visible; position: relative; float: left; padding: 1.7em; margin: 0; margin-bottom: 16px; height: 200px; /* Unscaled is 200px. If 'globe__container' is scaled, multiply this value by scale() property, e.g. 200px * 0.5 = 100px */ width: 200px; /* Unscaled is 200px. If 'globe__container' is scaled, multiply this value by scale() property, e.g. 200px * 0.5 = 100px */ } .globe__container { overflow: visible; position: relative; display: block; margin: 0; padding: 0; top: 0; left: 0; } .globe__container, .globe { width: 200px; height: 200px; } .globe { overflow: visible; position: relative; display: block; margin: 0; padding: 0; top: 0; left: 0; } .globe__worldmap, .globe__worldmap__front, .globe__worldmap__back, .globe__sphere, .globe__outer_shadow, .globe__reflections__bottom, .globe__inner_shadow, .globe__reflections__top, .globe__outer_shadow { position: absolute; display: block; margin: 0; right: auto; bottom: auto; } .globe__sphere, .globe__outer_shadow, .globe__reflections__bottom, .globe__inner_shadow, .globe__reflections__top { left: 0; top: 0; width: 200px; height: 200px; background-position: 0 0; background-repeat: no-repeat; } .globe__outer_shadow { left: 0; top: 186px; width: 200px; height: 30px; background-position: 0 0; background-repeat: no-repeat; } /* Circle mask for animated SVG files */ .globe__worldmap { left: 0; top: 0; width: 200px; height: 200px; overflow: hidden; -webkit-border-radius: 50%; -khtml-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); /* overflow: visible; */ } .globe__worldmap__front, .globe__worldmap__back { left: 0; top: 0; width: 1000px; height: 200px; overflow: visible; background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); background-repeat: no-repeat; } .backimg1{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere1{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .backimg2{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere2{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .backimg3{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere3{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .backimg4{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere4{ } .backimg5{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere5{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .bg5{ background-image: linear-gradient(#4a92ea 0%, #2b5c9a 99%); background-color: #0059C7; border-radius: 50%; } .innersha5{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/inner_shadow.svg) !important; } .backimg6{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere6{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .backimg7{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere7{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .innersha7{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/inner_shadow.svg) !important; } .backimg8{ background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/worldmap_2x.svg); } .spehere8{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg) !important; display: block !important; } .innersha8{ background-image:url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/inner_shadow.svg) !important; } .bg8{ background-color: #292F39; border-radius: 50%; } /** Globe elements visibility options **/ .globe__sphere { background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/sphere.svg); display: none;} .globe__outer_shadow { background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/outer_shadow.svg);} .globe__reflections__top { background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/reflections.svg); display: none;} .globe__reflections__bottom { background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/reflections.svg); display: none;} .globe__inner_shadow { background-image: url(http://zornet.ru/CSS-ZORNET/ASABAG/Vapelan/inner_shadow.svg);} .globe__worldmap__front { background-position: 0px 0px; animation: textureSpinreverse 8s linear infinite; } .globe__worldmap__back { background-position: 0px -220px; animation: textureSpin 8s linear infinite; } body { background-color: #fff; font-family: Georgia, serif; line-height: 1.5; font-size: 18px; color: #2c3e50; } .container h2 { padding: 0; margin: 0; padding-top: 1.65em; padding-bottom: 0.5em; font-size: 32px; line-height: 1.2; } .container h2 span { font-size: 65%; } .container h3 { padding: 0; margin: 0; font-size: 18px; font-weight: normal; padding-bottom: 1em; } .container p { color: #a6aeb5; } .container { margin: 0 auto; width: 100%; padding-left: 300px; padding-right: 10%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; /*outline: 1px solid green;*/ } .container .btn { text-align: right; clear: both; padding: 1em; padding-top: 1.5em; border-top: 1px solid rgba(0,0,0,0.1); } .container button { width: 100px; height: 40px; border: none; border-bottom: 1px solid #ccc; background-color: #efefef; border-radius: 4px; } .controls { background-color: #F8F8F8; font: normal 14px/1 Arial, Tahoma; width: 266px; position: absolute; top: 0; left: 0; /* */ z-index: 100; height: 100%; overflow: auto; -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0, 0.1); -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0, 0.1); box-shadow: 2px 2px 5px 0px rgba(0,0,0, 0.1); } .controls div { padding: 10px 20px; clear: both; } .controls div#stage-bg-color { padding-top: 20px; padding-bottom: 6px; } a { color: #ccc; text-decoration: none; } a:hover { color: #000; text-decoration: none; } a.on { color: #51B7FF; text-decoration: none; pointer-events: none; /* IE 11+, Safari 4+, Firefox 3.6+, Chrome */ } div.opacity { padding-bottom: 0; } div.opacity div { padding-left: 15px; margin-right: 10px; position: relative; font-size: 12px; } input.range { width: 80px; float: right; padding: 0; margin: 0; } input.text { width: 35px; border: none; background-color: #fff; color: #ccc; display: none; } input.color { font-size: 12px; margin-top: 0px; width: 50px; border: 1px solid rgba(204,204,204,0.5); padding: 6px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } button#play { width: 50px; } .info { color: #a6aeb5; font-size: 90%; line-height: 1.3; } .info ul { padding-left: 15px; } .info ul li { padding-bottom: .5em; } a.button { border: 1px solid #51B7FF; color: #51B7FF; padding: 12px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } a.button:hover { border: 1px solid #609DE5; color: #444; } #Stage code { position: absolute; top: 366px; right: 0px; left: 0; text-align: center; z-index: 99; font-family: Arial, "MS Trebuchet"; font-size: 13px; color: #333; } #Stage code.white { color: rgba(255,255,255,0.95); } .controls .nav-container { position: relative; padding-top: 20px; padding-bottom: 20px; } .controls #nav { width: 206px; display: inline-block; margin-right: 5px; } .controls .nav-fwd-bck { font-size: 13px; display: inline-block; padding: 0; } .nav-fwd-bck a { padding: 5px 0px; border: none; } .nav-fwd-bck a:hover { border: none; } #big-nav { position: absolute; z-index: 999; font-size: 36px; font-weight: bold; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; top: 410px; left: 8px; width: 265px; text-align: left; } #big-nav a { display: inline-block; border: none; color: #51B7FF; } #big-nav a:hover { border: none; color: #a6aeb5 !important; } div.reflections { font-size: 12px; padding-bottom: 20px; } .reflections strong { font-weight: normal; padding-left: 15px; padding-right: 5px; } .reflections a { padding-left: 1px; padding-right: 1px; } .disabled { color: #ccc; } .info a { color: #727272; border-bottom: 1px dashed #51B7FF; } .info a:hover { color: #444; border-bottom: 1px dashed #51B7FF; } .title p { font-family: Arial, "MS Trebuchet"; font-size: 20px; margin: 5px 0; padding: 0; } .title p.sub { padding-top: 0.65em; font-size: 12px; } .buy { margin-top: 10px; margin-bottom: 10px; } .buy a{ font-size: 13px; font-weight: bold; color: #708090; border-color: #708090; border-color: rgba(112,128,144,0.85); border-width: 2px; text-align: center; -webkit-transition: .25s all ease; -moz-transition: .25s all ease; -o-transition: .25s all ease; transition: .25s all ease; display: inline-block; width: 180px; } .buy a:hover{ border-width: 2px; color: #fff; border-color: #51B7FF; background-color: #51B7FF; } .examples a { border-color: #fff; display: inline-block; margin-bottom: 3px; } .examples a:hover { color: #51B7FF; } .reflections .t { padding: 2px 5px; display: inline-block; } #Stage { -webkit-transition: background-color 0.2s ease 0.0s; -moz-transition: background-color 0.2s ease 0.0s; -ms-transition: background-color 0.2s ease 0.0s; -o-transition: background-color 0.2s ease 0.0s; transition: background-color 0.2s ease 0.0s; } .ani_bgc { -webkit-transition: background-color 0.25s ease 0.0s; -moz-transition: background-color 0.25s ease 0.0s; -ms-transition: background-color 0.25s ease 0.0s; -o-transition: background-color 0.25s ease 0.0s; transition: background-color 0.25s ease 0.0s; } .ani_opacity { -webkit-transition: 0.25s opacity; -moz-transition: 0.25s opacity; -o-transition: 0.25s opacity; transition: 0.25s opacity; } /* @media screen and (max-width: 1920px){} @media screen and (max-width: 1680px){} */ @media screen and (max-width: 1400px){ #Stage, .title { /* left: 250px !important;*/ } } /* @media screen and (max-width: 1200px){} @media screen and (max-width: 1024px){} */ @keyframes textureSpin { from { transform: translateX(0); } to { transform: translateX(-47.5%); } } @keyframes textureSpinreverse { from { transform: translateX(-47.5%); } to { transform: translateX(0); } } @media screen and (max-width: 768px) { .container{padding-left: 140px;} } @media screen and (max-width: 425px) { .container{padding-left: 70px;} } @media screen and (max-width: 320px) { .container{padding-left: 0px;} }
Демонстрация
Страна: (RU )
Kosten
Понедельник, 13 Апреля 2020, 08:41 | Сообщение 2
Вращающийся глобус See the Pen spinning globe D3 v4 by Kocsten (@kocsten ) on CodePen .
Страна: (RU )
Kosten
Понедельник, 13 Апреля 2020, 08:45 | Сообщение 3
Оживленная луна вокруг Земли See the Pen Animate moon around Earth by Kocsten (@kocsten ) on CodePen .
Страна: (RU )