CSS text effect style : demo 248

Best jQuery

HTML

                        
Best jQuery

CSS

(Fonts required : Days One)
                        :root{
                            --white:#fff;
                            --background: #e9620a;
                        }
                        .demo{ background: var(--background); }
                        .text-effect{
                            color: var(--white);
                            font-family: "Days One", sans-serif;
                            font-size: 100px;
                            font-weight: 700;
                            text-align: center;
                            position: relative;
                            transition: all 0.3s ease-in-out;
                        }
                        .text-effect:before{
                            content: attr(data-content);
                            color: var(--background);
                            width: 100%;
                            height: 100%;
                            overflow: hidden;
                            position: absolute;
                            left: 0;
                            top: 0;
                            text-shadow: 0 0 2px var(--white), 0 0 1px var(--white), 0 0 1px var(--white);
                            animation: animate 6s linear infinite;
                        }
                        @keyframes animate{
                            0% { height: 100%; }
                            100% { height: 0%; }
                        }
                        @media only screen and (max-width: 990px){
                            .text-effect{ font-size: 80px; }
                        }
                        @media only screen and (max-width: 767px){
                            .text-effect{ font-size: 60px; }
                        }
                        @media only screen and (max-width: 576px){
                            .text-effect{ font-size: 45px; }
                        }
                    
License Terms