A
A
Alexey Korolev2019-04-10 22:17:39
css
Alexey Korolev, 2019-04-10 22:17:39

How to add custom properties to sticky-top in bootstrap 4?

Bootstrap has a nice sticky-top property that makes a block sticky. I'm using the standard nav component for the horizontal menu. But ... Tell me how to make it possible to apply your styles when this sticky block is triggered? For example, so that a shadow appears under the panel and a logo appears.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny, 2019-04-10
@AleksMey

This is not an event, but a property. Nothing, i.e. Look towards JS-solutions.

D
dimnsk, 2020-08-08
@dimnsk

https://habr.com/ru/post/436182/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question