Jump to content

PJ22

Member
  • Posts

    15
  • Joined

  • Last visited

Posts posted by PJ22

  1. Hey,

    On 5/24/2020 at 4:24 AM, Left2Write said:

    @PJ22 This is great thank you. May I ask, how do you make the text repeat from right to left (rather than bounce from side to side? Also, how could you change the font of the scrolling text? Thanks in advance.

    No problem. You can change the front with this line "font-family: 'proxima-nova', sans-serif;"

    I'm still trying to figure out how to repeat and do an infinite scroll/Carousel effect.

    This page may be of help. Please let me know if you figure it out. Thanks

    https://www.w3schools.in/css3/css-marquee/#Scrolling_Text_Using_CSS

     

    <!DOCTYPE html>
    <html>

    <body>
        <style style="text/css">
            .bounce {
                font-family: 'proxima-nova', sans-serif;
                font-weight: 400;
                height: 40px;
                overflow: hidden;
                position: relative;
                background:     #000000;
                color:     #ffffff;
                border: 0px solid     #000000;
            }
            
            .bounce p {
                position: absolute;
                width: 100%;
                height: 100%;
                margin: 0;
                line-height: 40px;
                text-align: center;
                -moz-transform: translateX(50%);
                -webkit-transform: translateX(50%);
                transform: translateX(50%);
                -moz-animation: bouncing-text 5s linear infinite alternate;
                -webkit-animation: bouncing-text 5s linear infinite alternate;
                animation: bouncing-text 20s linear infinite alternate;
            }
            
            @-moz-keyframes bouncing-text {
                0% {
                    -moz-transform: translateX(60%);
                }
                100% {
                    -moz-transform: translateX(-60%);
                }
            }
            
            @-webkit-keyframes bouncing-text {
                0% {
                    -webkit-transform: translateX(60%);
                }
                100% {
                    -webkit-transform: translateX(-60%);
                }
            }
            
            @keyframes bouncing-text {
                0% {
                    -moz-transform: translateX(60%);
                    -webkit-transform: translateX(60%);
                    transform: translateX(60%);
                }
                100% {
                    -moz-transform: translateX(-60%);
                    -webkit-transform: translateX(-60%);
                    transform: translateX(-60%);
                }
            }
        </style>

    <div class="bounce">
            <p>
    BUY ONE, DONATE ONE FACE MASK!</p>
        </div>
    </body>

  2. 3 hours ago, tuanphan said:

    sorry, missing your comment.

    You mean active link, hover link or?

    Add to Home > Design > Custom CSS

    
    a.Header-nav-folder-item:hover {
        background: black;
        color: white !important;
    }
    span.Header-nav-folder {
        padding: 0;
    }
    span.Header-nav-folder a {
        padding: 15px 5px;
    }

     

    That worked perfectly Thanks for all of your help. One last thing if possible, can we center the box and text to aligned under shop? The box comes out towards the right side, maybe if it could come out evenly on the left side to match the right side with the text centered,  i attached a similar example below

    tempsnip.jpg

  3. Thanks for the quick reply. How would i change the font with this code?

     

     

     

     

    <!DOCTYPE html>
    <html>

    <body>
        <style style="text/css">
            .bounce {
                height: 40px;
                overflow: hidden;
                position: relative;
                background:     #000000;
                color:     #ffffff;
                border: 0px solid     #000000;
            }
            
            .bounce p {
                position: absolute;
                width: 100%;
                height: 100%;
                margin: 0;
                line-height: 40px;
                text-align: center;
                -moz-transform: translateX(50%);
                -webkit-transform: translateX(50%);
                transform: translateX(50%);
                -moz-animation: bouncing-text 5s linear infinite alternate;
                -webkit-animation: bouncing-text 5s linear infinite alternate;
                animation: bouncing-text 10s linear infinite alternate;
            }
            
            @-moz-keyframes bouncing-text {
                0% {
                    -moz-transform: translateX(50%);
                }
                100% {
                    -moz-transform: translateX(-50%);
                }
            }
            
            @-webkit-keyframes bouncing-text {
                0% {
                    -webkit-transform: translateX(50%);
                }
                100% {
                    -webkit-transform: translateX(-50%);
                }
            }
            
            @keyframes bouncing-text {
                0% {
                    -moz-transform: translateX(50%);
                    -webkit-transform: translateX(50%);
                    transform: translateX(50%);
                }
                100% {
                    -moz-transform: translateX(-50%);
                    -webkit-transform: translateX(-50%);
                    transform: translateX(-50%);
                }
            }
        </style>

        <div class="bounce">
            <p> BUY ONE, DONATE ONE! </p>
        </div>
    </body>

    </html>

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.