当前位置:网站首页>Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
Three dimensional dice realize 3D cool rotation effect (with complete source code) (with animation code)
2022-07-05 04:57:00 【qq_ forty-six million thirty-four thousand nine hundred and for】
The whole idea : First, build the cube of the dice
1. First build the front and back surfaces (front and back), By positioning ( The son is the father ) Position the two boxes on the front of the cube , At this time, one side obscures the other , Add transform-style: preserve-3d; achieve 3d Stereoscopic effect , Put the front box along z The axis moves half the distance in the positive direction , Back box edge z The axis moves half the distance higher in the negative direction , The front and rear boxes are built , Collocation hover And transition to see the effect ;
2. Left and right boxes and steps 1 similar , However, the left and right boxes need to move left and right for half the distance , And need to bypass Z Shaft rotation ;
3. It is similar to the construction of left and right boxes , Need to go around X Shaft rotation , Need along Y Axis up and down
4. Add dice points on each side , stay front Noodles , to front New addition display: flex;(flex Layout ) justify-content: center;( The spindle is centered horizontally )align-items: center;( The side axis is centered ), The sub box is point, At this time in front In the middle of the face ;
5. stay back Noodles , Set the number of points to 2: to back add to flex Layout , Set up align-items: center;( The side axis is centered ),justify-content: space-evenly;( Elastic container 、 The gap between the elastic boxes is equal ), stay back Put two in point Just a box ;
6. stay left Face settings 3 spot :3 Each point can be divided into three boxes , to left add to flex Layout , The box above can be used justify-content: flex-end; Align the top right , Middle box centered justify-content: center;align-items: center;ÿ
边栏推荐
- 2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
- AutoCAD - Zoom previous
- Introduction to JVM principle and process
- Common technologies of unity
- 中国AS树脂市场调研与投资预测报告(2022版)
- GameObject class and transform class of unity
- 2020-10-27
- 【Leetcode】1352. Product of the last K numbers
- Time format conversion
- 2021 electrician Cup - high speed rail traction power supply system operation data analysis and equivalent modeling ideas + code
猜你喜欢
![[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)](/img/92/937122b059b6f3a91ae0e0858685e7.jpg)
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)

54. Spiral matrix & 59 Spiral matrix II ●●

AutoCAD - window zoom

Leetcode word search (backtracking method)

xss注入

C4D simple cloth (version above R21)

Autocad-- dynamic zoom
![[groovy] closure (closure as function parameter | code example)](/img/a6/a4ed401acfb61f85eb08daa15a8a80.jpg)
[groovy] closure (closure as function parameter | code example)

UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存

AutoCAD - set layer
随机推荐
猿人学第一题
Special information | finance, accounting, audit - 22.1.23
Number theoretic function and its summation to be updated
用 Jmeter 工具做个小型压力测试
Minor spanning tree
数论函数及其求和 待更新
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Listview pull-down loading function
Difference between singleton and factory pattern
Rip notes [rip message security authentication, increase of rip interface measurement]
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
AutoCAD - full screen display
AutoCAD - command repetition, undo and redo
AutoCAD - lengthening
Unity shot tracking object
【acwing】836. Merge sets
[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)
Thinking of 2022 American College Students' mathematical modeling competition
Use assimp library to read MTL file data
django连接数据库报错,这是什么原因