S
S
SheikhRamil2021-01-20 15:46:13
css
SheikhRamil, 2021-01-20 15:46:13

How to make a burger eat smoothly for 1 second?

https://playcode.io/727180/
https://codepen.io/ramil1hey/pen/qBavgQx

and what would you recommend to fix better if speaking from experience?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
V
Vadim, 2021-01-20
@ramil_bayramov

Played with your styles. Added in addition to leaving also the appearance of transparency.

Hold

*,*::after,*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: lavenderblush;
    padding: 1%;
}

.navbar__block {
    display: flex;
}

.navbar__link {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: black;
    padding: 5px;
}

.navbar__link:hover {
    background-color: rgb(216, 216, 216);
    border-radius: 10%;
}

.navbar__button {
    width: 100px;
    height: 30px;
    background-color: greenyellow;
    border: none;
    border-radius: 20px;
    outline: none;
}

.navbar__button:hover {
    cursor: pointer;
}

.burger {
    display: none;
    opacity: 0; // определяем начальное состояние как прозрачное
    transform: translateY(-10px); // смещённое вверх на 10 пикселей.
}

.burger-img {
    max-width: 40px;
    padding: 2px;
}

.burger__links {
    display: none;
}

.burger-img__cancel {
    max-width: 35px;    
}

.burger__ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: grey;
    top: 40px;
    left: 0;
    z-index: 1;
    transition: all 2s ease 0s;
}

@media (max-width: 587px) {
    .navbar__block > a {
        display: none;
    }
    .burger {
        display: block;
        animation-name: showBurger; // навешиваем анимацию
        animation-duration: 0.2s; // определяем её длительность
        animation-fill-mode: forwards; // и говорим что в конце анимации элемент должен остаться в конечном состоянии анимации
    }
    .burger__ul li {
        font-size: 1.5em;
        list-style: none;
        background: rgb(179, 179, 179);
        padding: 5px;
        margin: 5px 0;
        width: 90%;
        text-align: center;
    }
}

// Сама анимация.
@keyframes showBurger {
// Сразу описываем конечное состояние, так как начальное мы уже определили выше.
  100% {
    opacity: 1; // Делаем снова непрозрачным.
    transform: translateY(0) // И возвращаем на место
  }
}

D
Dimonchik, 2017-05-28
@dimonchik2013

do you have money?
you can Indian Indians , you can pathos Americans , you can American Indians
, or you can native Bitrix 24, but there xs what to adjust

X
xmoonlight, 2017-05-28
@xmoonlight

Install Joomla! CMS and give users the right to create publications in a specific section - these will be tickets. Custom / custom fields for publishing - can be configured from the admin panel. This feature is available immediately after installation "out of the box"!
In another section - keep the documentation.
Any customization of styles and appearance.
No one will need to pay.
List of OpenSource Help-Desk systems

S
Sanes, 2017-05-28
@Sanes

Hesk

L
lukoie, 2017-05-29
@lukoie

https://www.onlyoffice.com/en/features.aspx#network
only without tickets. but really liked it.
but in general, if you need the coolest thing, then Zhira. And Redmine.

B
budyakov, 2017-05-30
@budyakov

Come visit us at UseDesk
We know how to whitelabel individually.

M
Mikhail Yurievich, 2017-11-15
@Forbidden

We have settled on the intercom solution for now: https://help.spyserp.com - still in the process of filling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question