Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No transitions on hover anywhere on the site #42

Open
MughilM opened this issue Jul 29, 2021 · 1 comment
Open

No transitions on hover anywhere on the site #42

MughilM opened this issue Jul 29, 2021 · 1 comment

Comments

@MughilM
Copy link

MughilM commented Jul 29, 2021

Hello,
This is a great theme. However, I did notice a bug. For starters, I wanted to do some minor customization, and do a hover effect on the links in the navigation pane. This should be a simple css addition. But even after doing that no transition occurred.

I examined further in the theme.scss, and found that cards in the blog should have their title undergo a size change when hovered over. I've put the relevant snippet below.

.blog-grid-item {  
    color: #333;
    padding: 0;
    display: flex;
    align-items:center;
    .author-thumb {
        width:40px;
        border-radius:50%;
        margin-right: 7px;
    }
    .card {
        border:0;
        &:hover {           
           .card-title a { 
                background-size: 100% 100%;
            }
        }
    }
    .card-title {
        font-weight:700;
        font-size:22px;
        line-height:1.4;
        a { 
            background-image: linear-gradient(180deg, transparent 89%, $primary 0);
            background-repeat: no-repeat;
            background-size: 0 100%;
            transition: background-size .6s ease;
            position:relative;
            &:hover {
                text-decoration:none;
            }
        }
    }
...

When I hover over them, no animation or size change occurs, the card stays static, but I can still click the link. This is on a local Jekyll build and serve. I've also discovered that this doesn't happen on the public site showcasing the theme.

Any help is appreciated. Thanks!

@MughilM MughilM changed the title Hover tags do not appear to work No transitions on hover anywhere on the site Jul 29, 2021
@shoaiyb
Copy link

shoaiyb commented Sep 24, 2023

I also experienced it. It needs to be fixed.

I tried debugging it but couldn't know where to start so I start with disabling JavaScript, and it worked. It seems the JavaScript causes all the bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants