The second step of overall review of web -- css3 effect properties and animation

Catalog I. css effect attribute 1.box-shadow​ 2.text-shadow 3.border-radius 4.background Sprite animation Size adaptation of background drawing 5.clip-path Clip path animation: svg effect: 6.3D transformation Transform transform: - chromon rotation: I. css effect attribute box-shadow ...

Posted by GaryAC on Sat, 02 Nov 2019 06:45:49 -0700

JQuery svg pan zoom for svg drag and zoom

jquery-svg-pan-zoom.js download and documentation here https://github.com/DanielHoffmann/jquery-svg-pan-zoom Principle: control the viewbox property of svg viewbox is an attribute of SVG image. It defines the visible area of SVG, which is defined by four numbers: abscissa X, ordinate Y, Width, ...

Posted by ganlal on Fri, 01 Nov 2019 21:58:25 -0700

Detailed explanation of jQuery source code analysis ready event

The ready event is to execute a function (excluding pictures, css, etc.) after the DOM document tree is loaded, so it is triggered earlier than the load event. Usage: $(document).ready(fun); fun is a function that executes the anonymous function when the DOM tree is loaded There is a shorthand for ready, which can be directly passed in $(fun) ...

Posted by happyme on Thu, 31 Oct 2019 19:26:52 -0700

Vue -- detailed solution of V-model

1. v-model: the implementation principle of bidirectional data binding is equivalent to a v-bind plus v-on. <div id="app"> <!-- <input type="text" v-model="message"> --> <input type="text" :value="message" @input="message=$event.target.value"> <h2>{{message}}</h2> </div> 2. v-mode ...

Posted by jjfletch on Tue, 29 Oct 2019 07:17:50 -0700

Solve the problem that the click event of the checkbox included in the label is not effective and compatible in ie8 and below versions.

Problem Description: In IE8 and below versions, clicking the label does not automatically trigger the click event of the checkbox, resulting in the failure to produce the desired effect.         Original HTML code: 1 <div class="col-sm-2"> 2 <label><input type="checkbox" id="chk_sqjc" value="Application for insp ...

Posted by artfuldrone on Sat, 26 Oct 2019 07:38:14 -0700

02 - use and compatibility of semantic tags

02 - use and compatibility of semantic tags I. new semantic labels New semantic label view address new:H5 NEW Not supported in HTML5: this element is defined in HTML4.01, not supported in HTML5 2. Common labels Semantic label: Tag name Effect nav Presentation navigation header Page head ...

Posted by bradleyy on Fri, 25 Oct 2019 10:54:26 -0700

JavaScript Design Pattern - command pattern

Command pattern is a kind of behavior pattern in JavaScript Design pattern. Definition: To send requests to some objects, but we don't know what the requested operation is, so we hope to design the program in a loose coupling way, so that the coupling relationship between the sender and the receiver of the request can be eliminated, and ou ...

Posted by potato on Thu, 24 Oct 2019 20:53:45 -0700

Task04: string and sequence (1day)

We are going to use 17 days to divide the deliberate practice of Python foundation into the following tasks: Task01: variables, operators and data types (1day) Task02: condition and cycle (1day) Task03: list and tuple (2day) Task04: string and sequence (1day) Task05: functions and Lambda expressions (2 ...

Posted by Dani34 on Thu, 24 Oct 2019 07:24:52 -0700

Double countdown timer based on 8051 (version 1.1)

Version 1.1 is more complete than version 1.0. Functions of the program: 1. After the test box is powered on, the two countdown timers are not displayed and both are in the suspended state. 2. After sending "Show countdown 1st.E" to 8051, the first countdown shows the number of seconds ( ...

Posted by allinurl on Wed, 23 Oct 2019 10:34:16 -0700

Using Raphael to create a simple clock

The outer black arc represents the hour hand, the middle represents the minute hand, and the inner represents the second hand.We need to work out how many arc lengths we need to draw according to the time we have. The three arcs are just radii and have different colors. We need to encapsulate a function, and then execute this function once a se ...

Posted by haixiao on Wed, 23 Oct 2019 07:18:04 -0700