2020-09-04 html pure htm to achieve marquee effect + css barrage effect + JS to achieve drag and drop of nodes + batch printing of soft skills on the web

2020-09-03 Source of the topic: http://www.h-camel.com/index.html

[html] How to use pure HTML to achieve the marquee effect?

It should be realized by pure css, css animation attribute animation: action name animation time speed curve delay play times

animation: traffic-light 5s linear 0s infinite;

[css] Use css to use a barrage effect

Modify the position of the div combined with the animation feature animation tansform: translateX();

See the source code here https://blog.csdn.net/vampire10086/article/details/108703005

[js] Write a method to drag and drop a node

The idea is to modify the non-line style and use the mouse to move onmousemove onmouseup to monitor events

https://blog.csdn.net/vampire10086/article/details/108704025

Get non-interline style

window.getComputedStyle? window.getComputedStyle(element,false)[attr] : element.currentStyle(attr)

Array deduplication Array.from(new Set(arr))

Array dimensionality reduction Array.prototype.concat.apply([], arr);

[Soft skills] Have you implemented batch printing on the web? How to achieve?

Web uses window.print() to realize pagination and batch printing

https://blog.csdn.net/weixin_41488294/article/details/81705171

Guess you like

Origin blog.csdn.net/vampire10086/article/details/108704393