노란색 소제목 유리창 반짝 코드

 <div class="yellow-shine-bar">

    <h2 class="bar-title">여기 제목</h2>

</div>


<style>

    .yellow-shine-bar {

        width: 100%;

        margin: 30px 0;

        position: relative;

        overflow: hidden;

        background-color: #0047ff; /* 쨍한 파란색 */

        border-radius: 6px;

        box-shadow: 0 4px 12px rgba(0, 71, 255, 0.2);

        text-align: center;

    }


    .bar-title {

        margin: 0;

        padding: 20px 25px;

        color: #ffffff;

        font-size: 1.6rem;

        font-weight: 900;

        position: relative;

        z-index: 2;

        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);

        display: block;

    }


    /* ★ 반사광 색상을 완전 진한 노랑으로 고정 ★ */

    .yellow-shine-bar::before {

        content: "";

        position: absolute;

        top: 0;

        left: -150%;

        width: 100%;

        height: 100%;

       

        /* 흰색(255,255,255)을 아예 제거하고

           진한 노랑(255, 215, 0)과 밝은 노랑(255, 255, 0)으로만 구성

        */

        background: linear-gradient(

            110deg,

            rgba(255, 215, 0, 0) 15%, /* 투명한 노랑 */

            rgba(255, 215, 0, 0.6) 35%, /* 진한 노랑 */

            rgba(255, 255, 0, 1) 50%, /* ★ 정중앙: 완전 생노란색 ★ */

            rgba(255, 215, 0, 0.6) 65%, /* 진한 노랑 */

            rgba(255, 215, 0, 0) 85% /* 투명한 노랑 */

        );

       

        transform: skewX(-25deg);

        animation: yellow-flash 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);

        z-index: 1;

    }


    @keyframes yellow-flash {

        0% { left: -150%; }

        45% { left: 150%; }

        100% { left: 150%; }

    }

</style>

여기 제목