Cool WeChat QR code and cool WeChat QR code

Source: Internet
Author: User

Cool QR code and cool QR code

Personal blog address: http://1.liangtao.sinaapp.com/

Preface

In the process of blog beautification, You need to place a QR code on the Right To facilitate readers to scan. However, the original QR code style is too monotonous and rigid. So you just need to do it yourself. Not much said, first look at the effect of the completion of the production (readers can also be on the site on the right side to see the effect: http://1.liangtao.sinaapp.com/), very cool Oh.

It should be noted that the animation effect is: when the mouse clicks the QR code, the above picture is recorded for the whole animation. Although it is a GIF image, you can still use the QR code scanning tool to scan it. If you don't believe it, you can scan it and add me.

Next, we will introduce how to implement it step by step.

Create a QR code

First, you need to create a QR code image like this:

The detailed production process is as follows:

1. First, use the QR code business card feature provided by the app to generate a QR code business card (self-built Baidu), save it to your mobile phone, and then transfer it to your PC.

2. Baidu "QR code online decoding" decodes the QR code image stored on the PC end to obtain the link address. The procedure is as follows:

3. Copy the link address and generate a QR code using the QR code generator. The operation is as follows:

OK. The basic preparation is complete. Next, we use a program to animation the QR code image.

Animation Effect

With a QR code image, we can use CSS code to give different types of animation effects to the image. Directly run the Code:

<Style>. pic {width: 200px; height: 200px; overflow: hidden; cursor: pointer; border: 8px solid #00 AEEF; box-shadow: 0 0 4px rgba (0, 0, 0, 0, 0.2); margin: 20px auto; position: relative ;}. pic. top ,. pic. bottom {width: 200px; height: 200px; overflow: hidden; position: absolute; transform: skew (-45deg );}. pic. top {left: 0; top: 0; transform-origin: 100% 0; transition: all 1 s, transform 0 s ;}. pic. bottom {right: 0; bottom: 0; transform-origin: 0 100%; transition: all 1 s records-in, transform 0 s ;}. pic. top img ,. pic. bottom img {width: 100%; height: 100%; transform-origin: inherit; transform: skew (45deg );}. pic: hover. top {left:-20px; top:-20px ;}. pic: hover. bottom {right:-20px; bottom:-20px ;}. pic span {transform: rotate (-45deg); transform-origin: 0 100%; position: absolute; font-size: 15px; bottom:-1em; opacity: 0; trans Ition: all 1 s memory-in. 2 s ;}. pic: hover span {opacity: 1; text-indent: 6em ;}</style> <div class = "pic"> <div class = "top"> <! -- Replace your own QR code -->  /Images/weixinme.png "> </div> <div class =" bottom "> <! -- Replace your own QR code -->  /Images/weixinme.png "> </div> <span> Oh. Just Do IT! </Span> </div>

Well, the cool QR code is complete.

Follow-up

You can embed the above code into a website, or you can choose to record a gif and embed it into a webpage. How about this dynamic QR code? With this idea, we can use a program to make a variety of animated QR codes. SO, create your own cool QR code!


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.