Answer the question
In order to leave comments, you need to log in
How to change slides using custom buttons?
in owl-carousel
https://jsfiddle.net/jcnoawf8/2/
Answer the question
In order to leave comments, you need to log in
$prevButton.click(() => $slider.trigger('prev.owl.carousel'));
$nextButton.click(() => $slider.trigger('next.owl.carousel'));
From the global:
1. The page weighs 1.6mb. This is a terrible horror for such a page. Why are all the images in png? He is not needed there. Convert everything to jpg and optimize jpg - the weight gain will be huge.
2. Retina support. Now this is becoming important. All icons should be converted to svg. Or at least make [email protected] But the vector is better, it is more convenient to work with it and sometimes it weighs less than png.
3. Why are there 2 style files and several sprites? + Styles are more correctly minified.
The layout itself:
1. Read about the various methodologies. BEM, for example. Type selectors .site-header .site-menu li a
are a pain.
2. Block with logos. Inserting everything in one picture is, of course, easy and simple. But the customer would probably ask to make each logo a link to the site. Or, for example, when you need to add another logo. adding it will hurt.
3. For links, you can also add a transition. It won't get any worse than that.
This is the main thing that caught my eye :)
Usually, customers do not look at the quality of the code, it worked quickly for them and looked good everywhere.
So if you look through the eyes of the customer - where is the adaptive design???
The rules of good manners are cross-browser and it is lame for you. There are two great things: modernIE and Browserstack. Check the site so that it is the same everywhere and nothing climbs on top of each other. And improve your English. I understand that it is convenient for you to write in transliteration (shablon), but when other people support your code, take care of your karma, write names (variables, IDs and classes) in English (template).
I don't know what kind of errors you are talking about, but in my chrome it opened the norms. So normal layout.
Now take courses on how to make the whole thing responsive.
The page was loaded for more than 2 seconds, regarding png - they advised very correctly, at one time I myself encountered this. Styles must be merged into one file. Social buttons with an anchor? What? xD
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question