kmdonovan1
(Kevin Donovan)
09.Июнь.2019 16:19:36
1
How can I replace a generic spinner with a logo?
Here is the CSS code
.spinner {
position: absolute;
left: 50%;
top: 50%;
width: 40px;
height: 40px;
margin-left: -20px;
margin-top: -20px;
background-color: #ffffff;
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
animation: sk-rotateplane 1.2s infinite ease-in-out;
}
I would like to replace the generic white cube with a logo. Any suggestions?
Thanks
dax
(Daniela)
11.Июнь.2019 08:18:48
2
Avoid repositioning; you simply need to overwrite the current icon, so add the background-image and the background-size.
.spinner {
width: 40px;
height: 40px;
background-color: #ffffff;
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
animation: sk-rotateplane 1.2s infinite ease-in-out;
background-image: url("URL-of-your-logo-image-here");
background-size: 40px 40px;
}
kmdonovan1
(Kevin Donovan)
11.Июнь.2019 16:35:57
3
Thanks! Let me play with the code and see if can make it work.
The website is lajollacreative.com still a work in progress.
bartv
(Bart )
27.Сентябрь.2020 12:40:29
4
Хотел просто добавить наш собственный «спиннер». Но так как мы — сообщество 3D-графики, мы решили поднять это на новую высоту Посмотрите на https://blenderartists.org/
Canapin
(Coin-coin le Canapin)
27.Сентябрь.2020 12:58:13
6
Моя иконка загрузки — это gif, но мне было бы интересно узнать, создал ли кто-нибудь компонент темы для кастомизации HTML-кода загрузки.
bartv
(Bart )
25.Октябрь.2020 09:59:13
7
Для небольшого развлечения мы решили вызвать наше сообщество на создание новых спиннеров ; мы будем менять анимацию примерно раз в месяц.
Первый выбранный нами спиннер представляет процесс рендеринга в Blender:
Редакция: ой, мета-система конвертирует загруженные GIF в JPG :-/ Нажмите здесь, чтобы увидеть оригинал (или посетите наш сайт, чтобы увидеть его в действии).
Canapin
(Coin-coin le Canapin)
25.Октябрь.2020 10:19:01
8
Это может заинтересовать тех, кто заходит в эту тему:
Customize the loading icon
Note that it changes the main loading icon, but not the small loading icon (composer, search menu, etc).
Edit your current theme or create a new theme component.
Go in </head> and paste this code:
<script type="text/x-handlebars" data-template-name="components/conditional-loading-spinner">
{{#if condition}}
<div class="custom-loader-container">
<div class="my-custom-loader">
</div>
</div>
{{else}}
{{yield}}
{{/if}}
</script>
Replace or fill .my-custom-l…