JavaScript WebGL using pictures

IntroductionJavaScript WebGL setting colors The effect is always limited. At this time, you will think of using pictures, which involves the use of textures in WebGL, which is much more troublesome than expected.OriginMy GitHubUse picturesTexture can be used to add details of simulated objects. Textures are used for various simulated objects in ...

Posted by Cereals on Tue, 04 Jan 2022 11:24:01 +0100

Getting to know CSS section 2

🌹 CSS comments 🌹   comments can be used to explain the code and will be helpful when writing source code in the future. The browser automatically ignores comments< Comments in style > begin with / * and end with * /.   you can add comments anywhere in the code to explain the code. Comments can span multiple lines. example ...

Posted by mark110384 on Sun, 02 Jan 2022 22:43:02 +0100

[rem adaptation layout]

rem adaptive layout What is 1.0 rem rem is a relative unit, similar to em, which is based on the font size of the parent elementUnlike em, rem is based on the font size of the entire html pageIf the font size set for the root element is 12px, the font size set for its child element is 2rem; Then the font size is 24px 2.0 media query Media q ...

Posted by sirstrumalot on Sun, 02 Jan 2022 00:24:01 +0100

css coupon and card coupon style drawing (with shadow and sawtooth)

Recently, I was working on a small program project like a mall. Cards and vouchers are indispensable for the mall. At first, I planned to cut the UI, but I found it not so convenient, so I made a fuss by referring to various materials. Without much nonsense, I went to the renderings first: It can be seen from the effect drawing that the coupon ...

Posted by Desdinova on Mon, 27 Dec 2021 14:09:43 +0100

Amazing!! CSS can also achieve Aurora?

I finished this article last time-- Skillfully using gradient to realize high-level full background light animation After that, the comments below the article have students' comments. Can you use CSS to realize Aurora?Like this:emmm, it's a little difficult. However, I have also tried recently. Although it is impossible to simulate such a real ...

Posted by TLawrence on Fri, 24 Dec 2021 06:47:03 +0100

Realization of message board effect

Idea: Message function: click message - > get nickname and message content - > judge whether the input is empty - > message is successful if there is input- >Leave a message again after 10s         1. Get element {function $(selector) {return document.querySelector(selector)}         ...

Posted by jh21236 on Fri, 24 Dec 2021 04:15:15 +0100

CSS basic notes (CSS positioning)

Catalogue of series articles Article catalog catalogue Catalogue of series articles Article catalog preface 1, Positioning 1.1 why positioning is needed? 1.2 positioning composition 1.3 static positioning 1.4 relative positioning (important) 1.5 absolute positioning (important) 1.6 origin of Zi Jue Fu Xiang 1.7 fixed positioni ...

Posted by monkey_05_06 on Thu, 23 Dec 2021 14:38:45 +0100

CSS - positioning exercise (Carousel)

CSS (x) - positioning exercise (rotation chart) preface Before reading this note, you should pay attention to a problem. CSS3 or JavaScript is still needed to complete the effect of image scrolling. What we have been doing now is static pages, and dynamic effects will be added later. The content of this record is based on the previous notes, ...

Posted by willieklein on Wed, 22 Dec 2021 04:11:11 +0100

CSS gradient style

CSS gradient style CSS3 Gradients CSS3 gradients allow you to show a smooth transition between two or more specified colors. Previously, you had to use images to achieve these effects. However, by using CSS3 gradients, you can reduce the download time and broadband use. In addition, the elements of the gradient effect look better when zoomin ...

Posted by romano2717 on Tue, 21 Dec 2021 20:34:09 +0100

2021-11-19 html5+css3 learning notes

1. CSS properties inheritCascade 2. Inheritance of CSS properties For properties that cannot be inherited, you can generally use the inherit property value to force inheritance .box { width: 500px; border: 1px solid orange; } .bg { vertical-align: middle; /*Use the inherit attribute value to force inheritance of the width of the ...

Posted by hbradshaw on Tue, 21 Dec 2021 13:40:26 +0100