Пробую разное
Песочница скриптов
Сообщений 1 страница 11 из 11
Поделиться22025-04-28 00:15:32
[html]
<div class="magic-potion-selector">
<div class="selector-header">Выберите зелье</div>
<div class="potion-dropdown">
<div class="dropdown-toggle">
<span class="selected-value">Кликните для выбора</span>
<i class="dropdown-arrow">▼</i>
</div>
<ul class="potion-options">
<li data-potion="amortentia">
<span class="potion-icon" style="background-color: #e74c3c;"></span>
Amortentia (Амортенция)
</li>
<li data-potion="animagus">
<span class="potion-icon" style="background-color: #8e44ad;"></span>
Animagus Potion (Зелье анимага)
</li>
<li data-potion="antidote">
<span class="potion-icon" style="background-color: #27ae60;"></span>
Antidote to Common Poisons (Противоядие)
</li>
<li data-potion="draught">
<span class="potion-icon" style="background-color: #16a085;"></span>
Draught of Living Death (Напиток живых мертвецов)
</li>
<li data-potion="felix">
<span class="potion-icon" style="background-color: #f39c12;"></span>
Felix Felicis (Феликс Фелицис)
</li>
<li data-potion="pepperup">
<span class="potion-icon" style="background-color: #c0392b;"></span>
Pepperup Potion (Бодрящее зелье)
</li>
<li data-potion="polyjuice">
<span class="potion-icon" style="background-color: #2ecc71;"></span>
Polyjuice Potion (Полижуйс)
</li>
<li data-potion="skele">
<span class="potion-icon" style="background-color: #bdc3c7;"></span>
Skele-Gro (Скелегро)
</li>
<li data-potion="veritaserum">
<span class="potion-icon" style="background-color: #3498db;"></span>
Veritaserum (Веритасерум)
</li>
<li data-potion="wolfsbane">
<span class="potion-icon" style="background-color: #34495e;"></span>
Wolfsbane Potion (Зелье из волчьей ягоды)
</li>
</ul>
<input type="hidden" class="selected-potion" value="">
</div>
<div class="potion-details">
<div class="potion-info">
<div class="potion-image"></div>
<div class="potion-text">
<div class="potion-title" style="color: #423a52;"></div>
<div class="potion-description">Выберите зелье из списка</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
const potions = {
'amortentia': {
title: 'Amortentia (Амортенция)',
color: '#e74c3c',
desc: 'Самое сильное любовное зелье. Имеет перламутровый оттенок и издаёт аромат, который наиболее привлекателен для того, кто его нюхает. Запрещено к использованию.',
icon: '❤️'
},
'animagus': {
title: 'Animagus Potion (Зелье анимага)',
color: '#8e44ad',
desc: 'Позволяет волшебнику превращаться в животное. Процесс приготовления занимает месяц, требует постоянного ноствания мандрагоры во рту.',
icon: '🐾'
},
'antidote': {
title: 'Antidote to Common Poisons (Противоядие)',
color: '#27ae60',
desc: 'Зелье бирюзового цвета, нейтрализует большинство известных ядов. Изобретено Северусом Снеггом в школьные годы.',
icon: '🌿'
},
'draught': {
title: 'Draught of Living Death (Напиток живых мертвецов)',
color: '#16a085',
desc: 'Одно из самых сложных зелий. Вызывает глубокий сон, похожий на смерть. Имеет серебристый цвет.',
icon: '💀'
},
'felix': {
title: 'Felix Felicis (Феликс Фелицис)',
color: '#f39c12',
desc: 'Золотое зелье удачи. Дарует невероятное везение на 12 часов. Передозировка вызывает головокружение и безрассудство.',
icon: '✨'
},
'pepperup': {
title: 'Pepperup Potion (Бодрящее зелье)',
color: '#c0392b',
desc: 'Лечит простуду. После приёма из ушей повалит пар в течение нескольких часов. Изобретено в XVIII веке.',
icon: '♨️'
},
'polyjuice': {
title: 'Polyjuice Potion (Полижуйс)',
color: '#2ecc71',
desc: 'Позволяет принять облик другого человека на 1 час. Требует биологический материал цели (волос, ноготь). Имеет отвратительный вкус.',
icon: '🧪'
},
'skele': {
title: 'Skele-Gro (Скелегро)',
color: '#bdc3c7',
desc: 'Восстанавливает утраченные кости. Процесс крайне болезненный. Гарри Поттер использовал в 1993 году.',
icon: '🦴'
},
'veritaserum': {
title: 'Veritaserum (Веритасерум)',
color: '#3498db',
desc: 'Прозрачное зелье правды без вкуса и запаха. Заставляет говорить только правду в течение 1 часа. Используется Министерством Магии.',
icon: '💧'
},
'wolfsbane': {
title: 'Wolfsbane Potion (Зелье из волчьей ягоды)',
color: '#34495e',
desc: 'Позволяет оборотню сохранять человеческий разум при превращении. Очень сложно варится и дорого стоит.',
icon: '🐺'
}
};
// Открытие/закрытие dropdown
$('.potion-dropdown').on('click', function(e) {
e.stopPropagation();
$(this).toggleClass('active');
$('.potion-options').not($(this).find('.potion-options')).slideUp();
$(this).find('.potion-options').slideToggle(200);
});
// Закрытие при клике вне
$(document).on('click', function() {
$('.potion-dropdown').removeClass('active');
$('.potion-options').slideUp(200);
});
// Выбор зелья
$('.potion-options li').on('click', function(e) {
e.stopPropagation();
const potionId = $(this).data('potion');
const potion = potions[potionId];
// Обновляем выбор
$('.selected-value').text(potion.title);
$('.selected-potion').val(potionId);
// Обновляем детали
$('.potion-title').text(potion.title).css('color', '#423a52');
$('.potion-description').text(potion.desc);
$('.potion-image').html(potion.icon)
.css('background-color', potion.color)
.css('font-size', '24px');
// Закрываем dropdown
$('.potion-dropdown').removeClass('active');
$('.potion-options').slideUp(200);
});
});
</script>
<style>
.magic-potion-selector {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
width: 500px;
height: 300px;
margin: 20px auto;
padding: 15px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
border: 1px solid #e0e0e0;
}
.selector-header {
color: #423a52;
font-weight: 600;
margin-bottom: 12px;
text-align: center;
font-size: 16px;
}
.potion-dropdown {
position: relative;
margin-bottom: 15px;
}
.dropdown-toggle {
padding: 10px 15px;
background-color: #fff;
border: 1px solid #d1d1d1;
border-radius: 6px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.2s;
}
.dropdown-toggle:hover {
border-color: #a1a1a1;
}
.selected-value {
color: #423a52;
font-weight: 500;
}
.dropdown-arrow {
color: #423a52;
transition: transform 0.2s;
font-size: 12px;
}
.potion-dropdown.active .dropdown-arrow {
transform: rotate(180deg);
}
.potion-options {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
max-height: 70vh;
overflow-y: auto;
margin: 5px 0 0;
padding: 5px 5px;
list-style: none;
background-color: #fff;
border: 1px solid #d1d1d1;
border-radius: 0 0 6px 6px;
z-index: 1000;
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
transform: translateZ(0);
}
.potion-options::-webkit-scrollbar {
width: 8px;
}
.potion-options::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
.potion-options li {
padding: 10px 15px;
color: #423a52;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
transition: all 0.2s;
cursor: pointer;
white-space: nowrap; /* Добавлено для предотвращения переноса */
overflow: hidden;
text-overflow: ellipsis;
}
.potion-options li:hover {
background-color: #f0f0f0;
}
.potion-options li:last-child {
border-bottom: none;
}
.potion-icon {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 10px;
flex-shrink: 0;
}
.potion-details {
background-color: #fff;
border-radius: 8px;
padding: 15px;
border: 1px solid #e0e0e0;
}
.potion-info {
display: flex;
align-items: center;
gap: 15px;
}
.potion-image {
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 20px;
flex-shrink: 0;
}
.potion-text {
flex: 1;
}
.potion-title {
font-weight: 600;
margin-bottom: 5px;
font-size: 16px;
}
.potion-description {
color: #555;
font-size: 14px;
line-height: 1.5;
}
</style>
[/html]
Поделиться32025-04-28 08:19:08
[hideprofile]
[html]
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');
.classy-bq {
color: #423a52;
border-left:1px solid #ccc;
margin: 1.0em 10px;
padding: .7em 25px;
quotes: "\00AB\00A0" "\00A0\00BB";
position: relative; /* Добавлено для контекста позиционирования */
}
.classy-bq:before {
color: #423a52;
content: open-quote;
font-size: 8em;
line-height: .1em;
margin-right: .20em;
vertical-align: 0em;
opacity:0.50;
font-style: italic;
}
.classy-bq:after {
content: close-quote;
color: #423a52;
font-size: 8em;
line-height: 0.1em;
margin-left: .20em;
padding-bottom: 14px;
vertical-align: -.5em;
opacity: 0.50;
font-style: italic;
display: inline-block;
}
blockquote p {
display: inline;
font-size: 0.8rem;
line-height:1.5;
}
.blockquote-section {width:100%;max-width:750px;margin:0 auto;opacity:0.95;padding:20px; font-family: 'Montserrat', sans-serif;}
/*.blockquote-section > cite {font-style:none}*/
.cite {
color: #423a52;
display: block;
text-align: right;
padding-right: 20px;
font-size: 0.6rem;
margin-top: 10px;
font-style: italic;
}
</style>
<section class="blockquote-section">
<blockquote class="classy-bq"><p>В 1970 г. то, что прежде было лишь отзвуками редких вспышек, превратилось в настоящую войну. Локальные сражения обернулись полноценным террором. Магическая Британия окончательно перестала быть безопасной.
Одно за другим отменялись массовые развлекательные мероприятия. Ближе к восьмидесятым Министерство все больше советовало избегать людных скоплений. Да что толку? Те, кто называли себя Пожирателями, не гнушались и атаками на отдельно стоящие дома волшебников, а порой и магглов, связанных с магическим миром. Где они появлялись — небо озаряла Чёрная метка. Где они проходили — пахло смертью.
Долго так продолжаться не могло. Конечно, уже в середине десятилетия (а по слухам — и того раньше) открыто заявила о себе и другая организация, Орден Феникса, всеми силами препятствовавшая деятельности Пожирателей и передававшая их в руки Министерства… на первых порах.
Вскоре выяснилось, что тех немногих последователей Лорда, кого Ордену удавалось схватить, Министерство отпускало за «нехваткой доказательств». Это, а также нарастающие из-за постоянных вооружённых конфликтов экономические проблемы (вы думали, можно без последствий громить лавки?) — привело к отставке в 1975 году Юджины Дженкинс. Министром Магии становится Бартемиус Крауч-cтарший, всего на один голос обошедший Гарольда Мичмума в политической борьбе.
Назначение кажется более чем удачным решением — до этого момента ДоМП оправдывало свою неспособность справиться с угрозой террора тем, что вышестоящие органы Министерства связывали отделу руки, однако гладко не проходит: несколько представителей департаментов уходят в отставку в знак протеста (мы услышим о них позже, как о предателях и террористах).</p>
</blockquote>
<span class="cite">«Я хотел изменить этот мир. Но мир изменил меня»
<br>Братья Стругацкие <em>«Обитаемый остров»</em></span>
</section>
[/html]
Поделиться42025-04-28 08:19:50
[hideprofile][html]
<style>
.curved {
position: relative;
background: #423a52;
height: 120px;
border-bottom-left-radius: 50% 20%;
border-bottom-right-radius: 50% 20%;
color: #bdb8b2;
font-size: 40px;
margin: 0 auto;
padding-top: 20px;
}
</style>
<section class="curved" align="center">Здесь может быть заголовок</section>
<section class="blockquote-section">
<blockquote class="classy-bq"><p>В 1970 г. то, что прежде было лишь отзвуками редких вспышек, превратилось в настоящую войну. Локальные сражения обернулись полноценным террором. Магическая Британия окончательно перестала быть безопасной.
Одно за другим отменялись массовые развлекательные мероприятия. Ближе к восьмидесятым Министерство все больше советовало избегать людных скоплений. Да что толку? Те, кто называли себя Пожирателями, не гнушались и атаками на отдельно стоящие дома волшебников, а порой и магглов, связанных с магическим миром. Где они появлялись — небо озаряла Чёрная метка. Где они проходили — пахло смертью.
Долго так продолжаться не могло. Конечно, уже в середине десятилетия (а по слухам — и того раньше) открыто заявила о себе и другая организация, Орден Феникса, всеми силами препятствовавшая деятельности Пожирателей и передававшая их в руки Министерства… на первых порах.
Вскоре выяснилось, что тех немногих последователей Лорда, кого Ордену удавалось схватить, Министерство отпускало за «нехваткой доказательств». Это, а также нарастающие из-за постоянных вооружённых конфликтов экономические проблемы (вы думали, можно без последствий громить лавки?) — привело к отставке в 1975 году Юджины Дженкинс. Министром Магии становится Бартемиус Крауч-cтарший, всего на один голос обошедший Гарольда Мичмума в политической борьбе.
Назначение кажется более чем удачным решением — до этого момента ДоМП оправдывало свою неспособность справиться с угрозой террора тем, что вышестоящие органы Министерства связывали отделу руки, однако гладко не проходит: несколько представителей департаментов уходят в отставку в знак протеста (мы услышим о них позже, как о предателях и террористах).</p>
</blockquote>
<span class="cite">«Я хотел изменить этот мир. Но мир изменил меня»
<br>Братья Стругацкие <em>«Обитаемый остров»</em></span>
</section>
[/html]
Поделиться52025-04-28 08:21:00
[html]
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Inter, sans-serif;
}
.wrapper {
position: relative;
width: 100%;
height: 100%;
padding: 20px;
display: flex;
align-content: center;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.card {
position: relative;
width: 220px;
height: 300px;
background: #000;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}
.poster {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.poster::before {
content: '';
position: absolute;
bottom: -45%;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
transition: .3s;
}
.card:hover .poster::before {
bottom: 0;
}
.poster img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: .3s;
}
.card:hover .poster img {
transform: scale(1.1);
}
.details {
position: absolute;
bottom: -100%;
left: 0;
width: 100%;
height: auto;
padding: 1.5em 1.5em 2em;
background: #000a;
backdrop-filter: blur(16px) saturate(120%);
transition: .3s;
color: #fff;
z-index: 2;
}
.card:hover .details {
bottom: 0;
}
.details h1,
.details h2 {
font-weight: 700;
}
.details h1 {
font-size: 1.5em;
margin-bottom: 5px;
}
.details h2 {
font-weight: 400;
font-size: 1em;
margin-bottom: 10px;
opacity: .6;
}
.details .rating {
position: relative;
margin-bottom: 15px;
display: flex;
gap: .25em;
}
.details .rating i {
color: #e3c414;
}
.details .rating span {
margin-left: 0.25em;
}
.details .tags {
display: flex;
gap: .375em;
margin-bottom: .875em;
font-size: .85em;
}
.details .tags span {
padding: .35rem .65rem;
color: #fff;
border: 1.5px solid rgba(255 255 255 / 0.4);
border-radius: 4px;
border-radius: 50px;
}
.details .desc {
color: #fff;
opacity: .8;
line-height: 1.5;
margin-bottom: 1em;
}
.details .cast h3 {
margin-bottom: .5em;
}
.details .cast ul {
position: relative;
display: flex;
flex-wrap: wrap;
gap: 0.625rem;
width: 100%;
}
.details .cast ul li {
list-style: none;
width: 55px;
height: 55px;
border-radius: 50%;
overflow: hidden;
border: 1.5px solid #fff;
}
.details .cast ul li img {
width: 100%;
height: 100%;
}
</style>
<div class="wrapper">
<div class="card">
<div class="poster"><img src="https://i.postimg.cc/jjBSrfnQ/poster1-img.jpg" alt="Location Unknown"></div>
<div class="details">
<h1>Location Unknown</h1>
<h2>2021 • PG • 1hr 38min</h2>
<div class="rating">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<span>4.2/5</span>
</div>
<div class="tags">
<span class="tag">Italian</span>
<span class="tag">Drama</span>
<span class="tag">Indie</span>
</div>
<p class="desc">
Marco, a disillusioned backpacker in his late 20s, embarks on a solitary journey in search for meaning.
</p>
<div class="cast">
<h3>Cast</h3>
<ul>
<li><img src="https://i.postimg.cc/jqgkqhSb/cast-11.jpg" alt="Marco Andrews" title="Marco Andrews"></li>
<li><img src="https://i.postimg.cc/8P7X7r7r/cast-12.jpg" alt="Rebecca Floyd" title="Rebecca Floyd"></li>
<li><img src="https://i.postimg.cc/2SvHwRFk/cast-13.jpg
" alt="Antonio Herrera" title="Antonio Herrera"></li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="poster"><img src="https://i.postimg.cc/GtxLYS7q/poster2-img.jpg" alt="Location Unknown"></div>
<div class="details">
<h1>Air</h1>
<h2>2020 • PG • 24min</h2>
<div class="rating">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<span>4/5</span>
</div>
<div class="tags">
<span class="tag">Romance</span>
<span class="tag">Comedy</span>
<span class="tag">Short</span>
</div>
<p class="desc">
Two strangers meet together on a plane flying to the alps.
</p>
<div class="cast">
<h3>Cast</h3>
<ul>
<li><img src="https://i.postimg.cc/yY2QcYRp/cast-21.jpg" alt="Angelina Whyte" title="Angelina Whyte"></li>
<li><img src="https://i.postimg.cc/R0BgpsXc/cast-22.jpg" alt="Ivan Benson" title="Ivan Benson"></li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="poster"><img src="https://i.postimg.cc/yxH6DzPD/poster3-img.jpg" alt="Location Unknown"></div>
<div class="details">
<h1>End Credits</h1>
<h2>2021 • R • 1hr 41min</h2>
<div class="rating">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
<span>4.7/5</span>
</div>
<div class="tags">
<span class="tag yellow">Teen</span>
<span class="tag">Comedy</span>
<span class="tag blue">Drama</span>
</div>
<p class="desc">
Alex, together with his best friends, goes on a road trip whilst experiencing friendship, self-discovery, and the bittersweet transition to adulthood.
</p>
<div class="cast">
<h3>Cast</h3>
<ul>
<li><img src="https://i.postimg.cc/xd3twv4B/cast-31.jpg" alt="Jessica Enduro" title="Jessica Enduro"></li>
<li><img src="https://i.postimg.cc/C1MmSZy5/cast-32.jpg" alt="Charles Garcia" title="Charles Garcia"></li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="poster"><img src="https://i.postimg.cc/jjBSrfnQ/poster1-img.jpg" alt="Location Unknown"></div>
<div class="details">
<h1>Location Unknown</h1>
<h2>2021 • PG • 1hr 38min</h2>
<div class="rating">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
<span>4.2/5</span>
</div>
<div class="tags">
<span class="tag">Italian</span>
<span class="tag">Drama</span>
<span class="tag">Indie</span>
</div>
<p class="desc">
Marco, a disillusioned backpacker in his late 20s, embarks on a solitary journey in search for meaning.
</p>
<div class="cast">
<h3>Cast</h3>
<ul>
<li><img src="https://i.postimg.cc/jqgkqhSb/cast-11.jpg" alt="Marco Andrews" title="Marco Andrews"></li>
<li><img src="https://i.postimg.cc/8P7X7r7r/cast-12.jpg" alt="Rebecca Floyd" title="Rebecca Floyd"></li>
<li><img src="https://i.postimg.cc/2SvHwRFk/cast-13.jpg
" alt="Antonio Herrera" title="Antonio Herrera"></li>
</ul>
</div>
</div>
</div>
</div>
[/html]
Поделиться62025-04-28 09:34:51
Версия 1 на CSS без ссылок, адаптировано под мобильные:
[html]
<style>
.image-swapper {
display: inline-block;
cursor: pointer; /* Чтобы было понятно, что элемент интерактивный */
}
.image-swapper img:last-child {
display: none;
}
.image-swapper:hover img:first-child,
.image-swapper:active img:first-child,
.image-swapper:focus img:first-child {
display: none;
}
.image-swapper:hover img:last-child,
.image-swapper:active img:last-child,
.image-swapper:focus img:last-child {
display: inline;
}
</style>
<div class="image-swapper">
<img src='https://forumupload.ru/uploads/001c/76/cd/4/889921.png' alt="Image 1">
<img src='https://forumupload.ru/uploads/001c/76/cd/4/190159.png' alt="Image 2">
</div>[/html]
Версия 2 на CSS, с ссылками, адаптировано под мобильные:
[html]<style>
.hover-image {
display: inline-block;
}
.hover-image img:last-child {
display: none;
}
.hover-image:hover img:first-child,
.hover-image:active img:first-child,
.hover-image:focus img:first-child {
display: none;
}
.hover-image:hover img:last-child,
.hover-image:active img:last-child,
.hover-image:focus img:last-child {
display: inline;
}
</style><a href="#" class="hover-image">
<img src='https://forumupload.ru/uploads/001c/76/cd/4/889921.png' alt="">
<img src='https://forumupload.ru/uploads/001c/76/cd/4/190159.png' alt="" border=0>
</a>[/html]
Поделиться72025-04-28 09:51:40
[html]
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap");
* {
padding: 0;
margin: 0;
outline: none;
font-family: "Poppins", sans-serif;
text-transform: uppercase;
}
.container {
height: 500px;
width: 100%;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
background-color: #121212;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23171717' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%231c1c1c' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23212121' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23262626' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%232b2b2b' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%232e2e2e' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23313131' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23353535' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23383838' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%233b3b3b' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
}
.reveal {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
z-index: 1;
background-color: #fff;
height: 450px;
width: 650px;
border: 4px solid #1e1e1e;
border-radius: 40px;
box-shadow: 1px 1px 20px #222;
cursor: pointer;
transition: all 0.6s cubic-bezier(0.745, 0.11, 0.35, 0.845);
}
.reveal:hover {
background-color: #000;
border: 4px solid #3d3d3d;
}
.pic {
position: absolute;
height: 450px;
width: 650px;
object-fit: cover;
z-index: 10;
border-radius: 40px;
}
.reveal-title-main {
color: #000;
font-size: 70px; /* Увеличено с 55px */
font-weight: 600;
line-height: 70px; /* Соответствует новому размеру шрифта */
}
.reveal-title-sub {
margin-top: auto;
color: #000;
z-index: 5;
font-size: 35px; /* Увеличено с 25px */
font-weight: 500;
}
.reveal-title-answer {
color: #fff;
z-index: 5;
font-size: 40px; /* Увеличено с 30px */
}
.reveal-footer {
font-size: 25px; /* Увеличено с 20px */
margin-top: auto;
padding-bottom: 15px;
}
</style>
<div class="container">
<div class="reveal">
<img alt="Answer" class="pic" src="https://i.imgur.com/RFxr4Qc.png">
<h2 class="reveal-title-sub">What was the first</h2>
<h1 class="reveal-title-main">National Park?</h1>
<h3 class="reveal-title-answer">Yellowstone</h3>
<p class="reveal-footer">(hover to reveal)</p>
</div>
</div>
[/html]
Поделиться82025-04-28 10:00:13
Для зелий?
[html]
<style>
body {
margin: 50px;
}
.water {
margin: auto;
position: relative;
width: 200px;
height: 200px;
background-color: #80c5de;
box-shadow: inset 0 0 50px #1c637c;
clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%)
}
.water::before {
content: "";
width: 200%;
height: 200%;
background-color: #ececec;
position: absolute;
top: -150%;
left: -50%;
border-radius: 40%;
animation: anim 12s linear infinite;
}
.water::after {
content: "";
width: 204%;
height: 204%;
background-color: #ececec80;
position: absolute;
top: -150%;
left: -52%;
border-radius: 40%;
animation: anim 12s linear infinite;
animation-delay: 0.5s;
}
@keyframes anim {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div class="water"></div>
[/html]
Поделиться92025-04-28 10:15:40
[html]
<style>
.note-container {
width: 100%;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
padding: 50px 30px;
}
.notepad {
width: 80%;
max-width: 600px;
box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.15);
border-radius: 0 0 10px 10px;
overflow: hidden;
}
.top {
width: 100%;
height: 50px;
background: #333;
border-radius: 5px 5px 0 0;
}
.paper {
width: 100%;
height: 100%;
min-height: 360px;
padding: 35px 20px;
background: repeating-linear-gradient(#F1EDE9, #F1EDE9 31px, #94ACD4 31px, #94ACD4 32px);
font-family: "Shadows Into Light", cursive;
line-height: 32px;
outline: 0;
font-size: 22px;
}
</style>
<div class="note-container">
<div class="notepad">
<div class="top"></div>
<div class="paper" contenteditable="false">
Hello, this is a paper.<br>
Это дневник Тома Реддла
</div>
</div>
</div>
[/html]
Еще для оформления конкурсов-ивентов
[html]
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.fly-container {
display: flex;
flex-direction: column;
align-items: center;
}
.fly-container:hover {
cursor: pointer;
}
.fly-container img {
filter: grayscale();
width: 100px;
height: 100px;
border-radius: 50%;
border: 0px solid #493b66;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.5);
margin-bottom: 1rem;
transition: filter 0.4s ease-in-out;
}
.fly-container:hover img {
filter: none;
}
.fly-title {
font-family: 'FontAwesome';
font-size: 1.0rem;
color: #493b66;
position: relative;
}
.fly-title::after {
position: absolute;
content: "";
width: 0%;
height: 4px;
background-color: whitesmoke;
left: 50%;
bottom: -10px;
transition: all 0.4s ease-in-out;
}
.fly-container:hover .title::after {
width: 100%;
left: 0;
}
.fly-wrapper {
/*background: darkslateblue;*/
/*height: 300px;*/
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: center;
align-items: center;
}
</style>
<div class="fly-wrapper">
<div class="fly-container">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/905377.png">
<div class="fly-title">Подарок 1</div>
</div>
<div class="fly-container">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/321496.png">
<div class="fly-title">Подарок 2</div>
</div>
<div class="fly-container">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/166795.png">
<div class="fly-title">Подарок 3</div>
</div>
<div class="fly-container">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/491535.png">
<div class="fly-title">Подарок 4</div>
</div>
</div>
[/html]
Поделиться102025-04-28 10:23:08
Лотерея от Гекаты
[html]
<style>
/*Для использованных зелий div class="fly-container-1" меняем на div class="fly-container-2"*/
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.fly-container-1, .fly-container-2 {
display: flex;
flex-direction: column;
align-items: center;
}
.fly-container-1:hover {
cursor: pointer;
}
.fly-container-1 img {
filter: none;
width: 100px;
height: 100px;
border-radius: 50%;
border: 0px solid #493b66;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.5);
margin-bottom: 1rem;
transition: filter 0.4s ease-in-out;
}
.fly-container-1:hover img {
filter: grayscale();
}
.fly-container-2 img {
filter: grayscale();
width: 100px;
height: 100px;
border-radius: 50%;
border: 0px solid #493b66;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.5);
margin-bottom: 1rem;
transition: filter 0.4s ease-in-out;
}
.fly-title-1 {
font-family: 'Noto Serif';
font-size: 12px;
color: #493b66;
position: relative;
}
.fly-title-2 {
filter: grayscale();
}
.fly-title-1::after {
position: absolute;
content: "";
width: 0%;
height: 4px;
background-color: whitesmoke;
left: 50%;
bottom: -10px;
transition: all 0.4s ease-in-out;
}
.fly-container-1:hover .title::after {
width: 100%;
left: 0;
}
.fly-wrapper-main {
width: 400px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
</style>
<center><div class="fly-wrapper-main">
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/908622.png">
<div class="fly-title-1">Подарок 1</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/247671.png">
<div class="fly-title-1">Подарок 2</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/456282.png">
<div class="fly-title-1">Подарок 3</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/304679.png">
<div class="fly-title-1">Подарок 4</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/818542.png">
<div class="fly-title-1">Подарок 5</div>
</div>
<br><br>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/116058.png">
<div class="fly-title-1">Подарок 6</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/82264.png">
<div class="fly-title-1">Подарок 7</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/524225.png">
<div class="fly-title-1">Подарок 8</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/694356.png">
<div class="fly-title-1">Подарок 9</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/536553.png">
<div class="fly-title-1">Подарок 10</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/812773.png">
<div class="fly-title-1">Подарок 11</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/546373.png">
<div class="fly-title-1">Подарок 12</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/354795.png">
<div class="fly-title-1">Подарок 13</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/194888.png">
<div class="fly-title-1">Подарок 14</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/86680.png">
<div class="fly-title-1">Подарок 15</div>
</div>
<div class="fly-container-1">
<img src="https://forumupload.ru/uploads/001c/64/0a/2/104971.png">
<div class="fly-title-1">Подарок 16</div>
</div>
</div></center>
[/html]
Поделиться112025-04-28 11:01:24
[hideprofile]
[html]
<style>
/*@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");*/
.blockquote {
padding: 60px 80px 40px;
position: relative;
max-width: 100%
}
.blockquote p {
font-family: "Utopia-italic";
font-size: 35px;
font-weight: 100%;
text-align: center;
}
.blockquote:before {
position: absolute;
/*font-family: "Font Awesome 6 Free";*/
font-family: "FontAwesome";
top: 0;
content: "\f10d";
font-size: 200px;
color: rgba(0,0,0,0.1);
}
.blockquote::after {
content: "";
top: 20px;
left: 50%;
margin-left: -60px;
position: absolute;
border-bottom: 3px solid #504170;
height: 3px;
width: 200px;
}
@import url(https://fonts.googleapis.com/css?family … :400italic);
.otro-blockquote{
font-size: 1.4em;
width:60%;
margin:50px auto;
font-family:Open Sans;
font-style:italic;
color: #555555;
padding:1.2em 30px 1.2em 75px;
border-left:8px solid #78C0A8 ;
line-height:1.6;
position: relative;
background:#EDEDED;
}
.otro-blockquote::before{
font-family:Arial;
content: "\201C";
color:#78C0A8;
font-size:4em;
position: absolute;
left: 10px;
top:-10px;
}
.otro-blockquote::after{
content: '';
}
.otro-blockquote span{
display:block;
color:#333333;
font-style: normal;
font-weight: bold;
margin-top:1em;
}
</style>
<blockquote class="blockquote"><p> Creativity is just connecting things. When you ask creative people how they did something, they feel a little guilty because they didn't really do it, they just saw something. It seemed obvious to them after a while. That's because they were able to connect experiences they've had and synthesize new things.</p></blockquote>
<br />
<blockquote class="otro-blockquote">
Creativity is just connecting things. When you ask creative people how they did something, they feel a little guilty because they didn't really do it, they just saw something. It seemed obvious to them after a while. That's because they were able to connect experiences they've had and synthesize new things.
<span>Steve Jobs</span>
</blockquote>
[/html]
[html]
<style>
.reveal-footer::before {
content: "\f06e"; /* Код иконки глаза (fa-eye) */
font-family: "Font Awesome 6 Free";
margin-right: 8px;
}
</style>
<div class="reveal-footer">
(наведите, чтобы увидеть)
</div>[/html]
[html][html]
<style>
.quote-icon::before {
content: "\f10d"; /* Unicode-код fa-quote-left */
font-family: "Font Awesome 6 Free";
font-weight: 900; /* Обязательно для Solid-стиля */
margin-right: 10px;
color: #555; /* Цвет иконки */
}
</style>
<div class="quote-icon">Это цитата с иконкой слева.</div>[/html]