Как бы вы сделали так, чтобы тень выглядела так?CSS

Разбираемся в CSS
Ответить
Anonymous
 Как бы вы сделали так, чтобы тень выглядела так?

Сообщение Anonymous »

Как здесь: https://jsfiddle.net/h3rn1pgy/

Код: Выделить всё

body {
height: 100vh;
overflow: hidden;
}

figure {
width: 100%;
height: 100%;
margin: 0 !important;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
}

.stripes-wraper {
width: 450px;
height: 450px;
border-radius: 50%;
filter: drop-shadow(0 0 20px #F29);
overflow: hidden;
position: absolute;
}

.stripe {
width: 100%;
height: 15px;
background-color: #FFF;

}

.stripe + .stripe {
margin-top: 15px;
}

.gradient-mask {
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #92F 0%, #F29 100%);
mix-blend-mode: multiply;
position: absolute;
}


Изображение
Как я могу включить эффект тени из предыдущего кода в следующий код?
Мне не удалось это понять.
код: https://jsfiddle.net/ocw72kh3/

Код: Выделить всё

body {
height: 100vh;
overflow: hidden;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
background: #000;
}

.sun {
width: 50%;
max-width: 450px;
aspect-ratio: 1 / 1;
border-radius: 50%;
filter: drop-shadow(0 0 20px #f29);
background: linear-gradient(
to bottom,
transparent,
transparent 50%,
#000 50%,
#000 100%
),
linear-gradient(to bottom, #92f 0%, #f29 100%);
background-size: 100% 8.4%, 100% 100%;
}



Подробнее здесь: https://stackoverflow.com/questions/782 ... -like-this
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»