Как изменить вид переключателя radio в форме в Tilda
Школа для маленьких художников
Какая программа подходит Вам?
Выберете курс
Общее кол-во уроков: 0 уроков
Стоимость в месяц: 0 руб.

Как изменить вид переключателя radio в форме в Tilda

1
Создали форму BF311N
2
Добавили в него поле с одним вариантом ответа radio
3
Вставили стиль в блок Другое - Т123
В стиле прописали буквы пунктов, цвет, картинку обводки и их положение
Mo-ti Level Up
Видео инструкции по добавлению кода и работе с Zero Block.
Изменяем вид radio переключателя и добавляем картинки.
Длительность видео: 23 мин
Фрагмент видео
Библиотека для примера

<style>
.t-radio__indicator:before {  color: #000;}
.t-radio__indicator:after {
 background-image: url(https://static.tildacdn.com/tild6563-6561-4264-a332-653431343961/1520551271_logo_500x.png) !important;
}

.t-radio__control:nth-child(1) .t-radio__indicator:before{content: "a"}
.t-radio__control:nth-child(2) .t-radio__indicator:before{content: "b"}
.t-radio__control:nth-child(3) .t-radio__indicator:before{content: "c"}
.t-radio__control:nth-child(4) .t-radio__indicator:before{content: "d"}


 .t-radio__indicator { text-align: center;}
.t-radio__control .t-radio:checked ~ .t-radio__indicator:after {
    transform: rotate(360deg);
}
.t-radio__indicator:before { 
    font-weight: 600;
    color: #000;
    font-size: 14px;
    position: absolute;
    top: -2px;
    left: 2px;
}
.t-radio__indicator:after {
    width: 30px;
    height: 30px;
    top: 0;
    bottom: 0px;
    left: -9px;
    right: 0;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
}
.t-radio__indicator {
    height: 20px;
    width: 20px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    opacity: 0.6;
}
.t-radio__indicator {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border-color: transparent;
    border-style: solid;
    border-width: 0px;
    box-sizing: border-box;
    border-radius: 50%;
    margin-right: 10px;
}
.t-radio__indicator:after {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    margin: auto;
    opacity: 0;
}
</style>
Made on
Tilda