Pure CSS to achieve the sticky effect of two balls intersecting
This is a pure CSS effect. The effect is an image processing principle. It is almost the same as that in Photoshop. It's just a layer and color plate, and one is CSS (div as layer thinking).
Start with PhotoShop
In the beginning, when we play Photoshop, it's easier to understand than writing CSS directly (it's OK for people who don't have Photo ...
Posted by dominant on Thu, 21 Nov 2019 22:56:15 -0800
Interaction between angularJS custom instructions
angularJS custom instruction
Include: used when element labels need to be nested, in combination with ng include. The default value is false. Nesting cannot be used. true means nesting can be used. Using ng translate on which label is nested in which label.
Code example: (replace hello and hi tags and nest span tags in div)
<script type="tex ...
Posted by sorenchr on Thu, 21 Nov 2019 06:33:39 -0800
A simple slider component
Let's take a look at a picture:
There are many ways to achieve this effect, such as directly using < input type = "range" / > to modify the style, or using the following methods to modify
style
HTML code:
<div class="slider">
<button class="slider-track"></button>
<button class="slider-thumb">&l ...
Posted by Daegalus on Wed, 20 Nov 2019 11:32:15 -0800
js full page screenshot
I. Reference Library
Download address of html2canvas.js and canvas2image.js: html2canvas.js: http://html2canvas.hertzen.com/dist/html2canvas.min.js canvas2image.js: https://github.com/SuperAL/canvas2image/blob/master/canvas2image.js
Two, use
The jQ library needs to be introduced. If the browser is not introduced, you can import it y ...
Posted by ahzulfi on Wed, 20 Nov 2019 06:27:08 -0800
Master vscode debugging skills
Debugging front-end js
Prepare a Front End Project
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</ ...
Posted by kruahsohr on Mon, 18 Nov 2019 11:47:12 -0800
cocoapods installation errors and Solutions
Error in updating pod
rubygems/core_ext/kernel_warn
/Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
from /Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55: ...
Posted by xcoderx on Mon, 18 Nov 2019 06:09:04 -0800
A JavaScript technology stack for you to understand inheritance and prototype chain
By Jeskson
Source: front end tavern of dada
1
In learning JavaScript, we know that it is a flexible language, with object-oriented, functional style programming mode, object-oriented has two points to remember, three features, six principles.
So what are they? What are the three specific characteristics? Keep in mind three major features: E ...
Posted by suge on Sun, 17 Nov 2019 05:51:33 -0800
kui component library idea (come on, brother, keep updating, deploy gitpages, add issue)
Click the blue words above to follow us
Welcome to my public address, Python.
01
Some ideas
Today, I will not update the flash tutorial for the time being. Today, I write an article to introduce the idea of doing a day's kui component chemistry library. In fact, there is a vague feeling that I want to have my own component chemistry library, wh ...
Posted by lnt on Sat, 16 Nov 2019 13:59:40 -0800
echarts instrument cluster replacement style full circle to semicircle
Question: I want to change the default style of the dashboard in Figure 1 to the style of the semicircle in Figure 2. In the official website, you can change the style of the dashboard by changing the theme button, but there is no actual demo ~ how to change the style?
Picture 1.png
Picture 2.png
Reference API: http: ...
Posted by Eggzorcist on Fri, 15 Nov 2019 11:44:28 -0800
Development of obit system
Sometimes we need to derive some states from the state in the store, such as:
Copy code<div id="app">
<p>{{reverseMessage}}</p>
</div><script>
const store = new Vuex.Store({
state:{reverseMessage:'Hello Vue!'}
})
new Vue({
el:'#app',
store,
computed:{
reverseMessage:function(){return this.$ ...
Posted by Suchy on Fri, 15 Nov 2019 00:18:14 -0800