A
A
agent11562016-09-24 16:02:26
css
agent1156, 2016-09-24 16:02:26

How to set up animation?

Hello, on the site there is a list of organizations, when you hover over the heading, the animation starts at the star rating below it. How to customize the animation of the current organization? (this)

function a() {

setTimeout(function() {
    $('.posthide a').eq(0).css({height:'100px','color':'#FFE34D'});
});

    setTimeout(function() {
        $('.posthide a').eq(1).css({'height':'10px','color':'#FFE34D'});
    }, 300);

    setTimeout(function() {
        $('.posthide a').eq(2).css({'height':'10px','color':'#FFE34D'});
    }, 600);

    setTimeout(function() {
        $('.posthide a').eq(3).css({'height':'10px','color':'#FFE34D'});
    }, 900);

    setTimeout(function() {
        $('.posthide a').eq(4).css({'height':'10px','color':'#FFE34D'});
    }, 1200);

    setTimeout(function() {
        $('.posthide a').css('border','');
        $('.posthide a').css('color','');
    }, 2000)

};

$('h3 a').hover(
    function () {
       a();
    }
);

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
devstudent, 2016-09-15
@Danipala

on your screenshots of the layout and layout, different column widths are visual even. and being 4 columns just means they take up 25% of the width of the browser window. may not fit. what is your layout width? What about the width of your site in the browser? if there is more in the layout, then of course it will not fit, you need to check everything.

D
doctorcat, 2016-09-15
@doctorcat

reduce the font) Better see what size it is in fsh.
https://chrome.google.com/webstore/detail/page-rul...
here is a utility to measure the distance with a ruler)

W
WQP, 2016-09-24
@WQP

in css to .posthide aaddtransition: all ease 250ms;

A
Anton, 2016-09-25
@SPAHI4

There is css for this. We just use :hover. A similar example is in my other answer
https://toster.ru/answer?answer_id=883077

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question