Test

Объявление

Добро пожаловать в военную академию Басгиат
Учебный год в самом разгаре, началось самое важное событие в жизни любого всадника — Молотьба.

Связывайтесь с драконами. Оглядывайтесь по сторонам: бездраконные начали убивать.
Добро пожаловать на Двор Роз и Шипов!
В дополнительной секции редактора появится кнопка "Шаблон", при нажатии на которую в форму ответа вставится тот шаблон, который вы введете ниже. Если добавите тег [cursor], то в это место будет установлен курсор пользователя.

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Test » ideas for creating characters » буэх


буэх

Сообщений 1 страница 3 из 3

1

123

0

2

[html]

<style>
/* В стилях .modal-container заменяем transform на переменную */
.modal-container {
  /* ... все остальные стили ... */
 
  /* Используем CSS-переменную, которой будет управлять JS */
  transform: rotateX(var(--rotateX, -10deg)) rotateY(var(--rotateY, 5deg));
}

/* Стили для панели управления */
.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  padding: 15px;
  border-radius: 10px;
  color: white;
  z-index: 100;
  text-align: center;
}
.controls input {
  width: 200px;
}

</style>

[html]
<style>
.bg-test {
width: 100%;
height: 300px;
background: gray;
padding: 50px 150px;
box-sizing: border-box;
}

.modal-scene {
  perspective: 1500px;
}

.modal-container {
  width: 600px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  position: relative;
 
  transform: rotateX(var(--rotateX, -10deg)) rotateY(var(--rotateY, 5deg)) rotateZ(var(--rotateX, -5deg));
  transition: transform 0.5s;
}

.modal-container:hover {
    transform: rotateX(-5deg) rotateY(0deg) scale(1.05);
}

.modal-container::before,
.modal-container::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: #0ff;
  border-style: solid;
  transition: all 0.3s;
}

.modal-container::before {
  top: -10px;
  left: -10px;
  border-width: 2px 0 0 2px;
}
.modal-container::after {
  bottom: -10px;
  right: -10px;
  border-width: 0 2px 2px 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}
.modal-content {
  padding: 20px;
}
.modal-content img {
  max-width: 100%;
  border: 1px solid rgba(0, 255, 255, 0.2);
}
a {
  color: #f0f;
  text-shadow: 0 0 5px #f0f;
}

</style>

<section class='bg-test'>
<div class="modal-scene">
  <div class="modal-container">
    <div class="modal-header">
      <h3>Incoming Transmission</h3>
      <button class="modal-close">&times;</button>
    </div>
    <div class="modal-content">
      <p>System alert: Unauthorized access detected. A <a href="#">link to protocols</a> is available.</p>
      <img src="https://i.pinimg.com/originals/74/ac/17/74ac17f91053f32370644b755605b879.gif" alt="Cyberpunk UI element">
      <button class="action-button">Verify Identity</button>
    </div>
  </div>
</div>
</section>

<div class="controls">
  <label for="rotationSlider">Угол наклона (rotateX): <span id="rotationValue">-10</span>deg</label>
  <input type="range" id="rotationSlider" min="-45" max="45" value="-10">
</div>

[/html]

0

3

[html]
<style>

.personal-page {
  width: 1000px;
  height: 600px;
display: block;
position: relative;
overflow: hidden;
}

.scene {
  perspective: 1000px;
  width: 700px;
  height: 900px;
  margin: 50px auto;
  display: flex;
position: relative;
gap: 10px;
}

.door {
  width: 400px;
  transform-style: preserve-3d;
  transform: rotateY(-7deg);
  transition: transform 1s ease;
  transform-origin: left center;
height: 500px;
flex-shrink: 0;
}
.door2 {
  transform: rotateY(7deg);
  transform-origin: right center;
width: 400px;
height: 500px;
flex-shrink: 0;
}

.content {
  background: #222;
  color: #eee;
  border: 2px solid cyan;
  border-radius: 8px;
  padding: 20px;
height: 100%;
}

.content img {
width: 200px;
height: 300px;
object-fit: cover;
}

</style>

<section class='personal-page'>
<div class="scene">

  <div class="door2">
    <div class="content">
      <h2>Ебучий контент</h2>
      <p>Текст и <a href="#">ссылки</a> внутри блока</p>
      <img src='https://i.pinimg.com/736x/a9/23/0e/a9230e231ff152aa6d075835c835e4ba.jpg'>
  </div>
</div>

  <div class="door">
    <div class="content">
      <h2>И ещё чуток</h2>
      <p>Текст и <a href="#">ссылки</a> внутри блока</p>
    </div>
    </div>

</div>
</section>
[/html][hideprofile]

0


Вы здесь » Test » ideas for creating characters » буэх


Рейтинг форумов | Создать форум бесплатно