Animation of elements when scrolling a page using GSAP

Animation of elements when scrolling a page using GSAP
in Front-end | January 14, 2020

Let’s consider creating an animation of elements when scrolling a page using a specific task as an example. What do we have The section where two blocks are placed (fig. 1). On the left there is a title and a block with icons (1), on the right there are blocks with text (2). Hereafter, the […]

Developing of WordPress theme – Main definitions

Developing of WordPress theme
in Front-end, Wordpress | January 3, 2020

Main definitions Theme WordPress theme – it’s a common design of the site that includes colour, graphics, and text. The theme – this is what is sometimes called ‘skin’ or ‘template’, but it’s neither one nor the other. ‘Skin’ and ‘template’ is a decoration of the site. WordPress theme is a place where the code meets […]

How we use SVG sprites

How to use svg sprites fronetnd blog
in Front-end | November 27, 2019

Hi, developer! When making a layout from PSD, icons are often inserted in SVG format, and if not, we ask them from the designer. Earlier we used icon fonts, but recently saw the advantages of sprites and decided to try to play with them to place them into the development process. We like icon fonts, […]

Organizing form elements with pug

Organizing form elements with Pug
in Front-end | November 12, 2019

Hi, developer! In order to layout faster and to support the project in an easier way, we have made a pug mixin for form elements. It looks like a big sausage code: However, in reality it is a very simple mixin to use. With it, we can do the following types of form elements: input(type=”text”) […]

Web fonts: Connect and use

Web Fonts CSS How to use
in Front-end | November 6, 2019

Hi, developer! Previously, in order to connect an off-site font to the site, the @ font-face directive was used with a link to the font in several formats (eot, svg, ttf, woff, etc.). In 2015, it became possible to use font caching in localstorage, and there was also no need to use many different formats. […]

Splitting styles with sass

Splitting styles SASS
in Front-end | September 23, 2019

Hi, developer! Sometimes during layout, it is necessary to split style files into several ones according to some principle. In this article, we will split the styles into the main file and the file for IE9. Folder structure (are displayed only those folders that we need for this article): Since sass does not compile files […]

Icon Fonts

Icon fonts
in Front-end | May 16, 2019

Hi, developer! In this article I will tell you how to create and use an icon font with gulp. We use gulp-iconfont and gulp-iconfont-css. Install plugins and prescribe dependencies gulpfile.js The fontName parameter is required; this is the name of our font. Write the task gulpfile.js And now more detailed: Let’s take all the icons (the path […]

Automatic layout testing

Automatic layout testing in Frontend
in Front-end | February 13, 2019

Hi, developer! A frequent problem of a layout designer is that he corrects styles in one place, but they change in several places. And, as a rule, the layout designer notices it too late. In this post, I will talk about regression testing. The main point of the method is that you take screenshots of […]