svg to implement the interactive effect of the official account tutorial GQ Lab interactive effect

Mondo Technology Updated on 2024-01-28

Hello friends, I'm San'er.

Recently, many friends have asked me about an article in GQ Lab, the top stream of SVG interaction, with a creative ceiling.

San'er, can we do it?”

Let's take a look at this article first, it is an effect of multiple selections + clicking on the first image to disappear to generate a selection result map.

GQ Lab Interactive Effects.

Let's start with the conclusion:It can be done!

Let's witness the miracle together.

Go to the SVG editor

Find the SVG Editor on the left side of the editor and click to enter the SVG Editor.

Search for the Effect component

Select the interactive effect, enter the component ID: 543 in the search box, and you can find the [Horizontal multi-choice sliding + generate result display] component.

Upload your footage

Attention!Attention!Before uploading ** materials, we need to carefully check the material requirements, and many friends skip this step, resulting in the final effect cannot be presented.

To distill: 1in each set of sliding platesBackground imagewithSlide** The width and height are the same

2.between each groupThe width needs to be consistent, height is not required;

3.eachSliding** matches the result image and the result cover image, and the background image of the result needs to be the same width and height

4.The elements in the sliding result image need to be placed in the position displayed in the background image of the final resultDon't share a picture with slippery **

There are too many words, and my head is dizzy to read".

Don't worry, follow San'er to do it again, and you'll understand!

Upload the result cover image and result background image first(The width of the footage is the same).

Add a sliding board.

03.Upload a background image(The size of the background image is the same as the size of the slip).

Upload slip**.

Let's sort it out:

Slide**:It is the part where the user selects to slide and the size of the background image

Sliding Result Graph:is the last part to be clicked on;

ThereforeThe width and height of the sliding result image must be the same as that of the result cover image and the result background image, and the elements in the sliding result image need to be placed in the position displayed in the background image of the final result.

Add a sliding board.

What we have just completed is only the content of the first sliding plate, and then we will draw the scoop according to the gourd and add the second sliding plate.

The background picture, slide**, and slide result diagram of the second sliding plate are the same as those of the first sliding plate, and they will not be repeated here, and there are a few sliding contents to add a few sliding plates.

In order to prevent everyone from being confused about the relationship between the dimensions of each plate, San'er has made a legend here.

Import to the editor or sync to the background.

If you don't have an authorized 135 editor and want to synchronize to the background, you can install the 135 plug-in and synchronize it without authorization.

The end result

Related Pages