I
I
ilya granovskyy2020-11-16 17:21:44
JavaScript
ilya granovskyy, 2020-11-16 17:21:44

How can I make a drop down menu for display:flex so that the menu shrinks in size as I scroll?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Damir Makhmutov, 2016-08-22
@letehaha

You need to do something like this:

$('.elem-exp .js-svg-bar').countTo({
    to: 70,
    speed: 1000,
    onUpdate: function (value) {
        $(this).attr('percent', value);
    }
});

M
maralov, 2020-11-17
@maralov

position the .product class absolutely relative to the list element with the text "Our proposals " to the same position:relative element (for better control, give it a class like item-has-submenu
.product top:100% left:0 and hide it or display:none , or opacity: 0 visability: hidden
further when hovering over item-has-submenu - display .product

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question