N
N
Nimbus19962021-03-09 14:16:44
css
Nimbus1996, 2021-03-09 14:16:44

How to fix buttons on iOS in safari?

Buttons are broken in safari on iPhones, the problem is in the transform, how can I fix this, any ideas? 604758147b5d3001962976.jpeg

CSS:

main__link-query{
        position: relative;
        font-family: "FranckerW-SemiBold";
        font-weight: 600;
        font-size: 20px;
        line-height: 20px;
        z-index: 1;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 300px;
        height: 70px;
        cursor: pointer;
        transition: .2s;
        &::before,
        &::after {
            content: '';
            position: absolute;
            z-index: -1;
            background: radial-gradient(170.66% 2296.43% at -8.83% -25%, #3093EF 0%, #144DA3 100%);
            transform: perspective(9px) rotateX(179deg);
        }
        &::before{
            left: -1px;
            bottom: -4px;
            width: 302px;
            height: 72px;
        }
        &::after {
            left: 2px;
            right: 0;
            top: 4px;
            bottom: 0;
            width: 296px;
            height: 67px;
        }
        &:hover{
            color: #087DEA;
        }
        &:hover::after,
        &:hover::before {
            background: rgba(2,6,10,0.1);
            backdrop-filter: blur(15px);
        }
        &:hover::before{
            border: 3px solid #087DEA;
        }
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2021-03-09
@sharnirio

add -webkit-transform: perspective(9px) rotateX(179deg) to the styles
and next time I still advise you to use the auto-prefixer, if it is not possible to work with gulp, grant, webpack - then at least pass through the online tool before release - link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question