当前位置:网站首页>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;ÿ
边栏推荐
- 2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
- How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
- Unity3d learning notes
- Sixth note
- AutoCAD - continuous annotation
- 2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
- Research and forecast report on China's solution polymerized styrene butadiene rubber (SSBR) industry (2022 Edition)
- 【acwing】837. Number of connected block points
- 【acwing】240. food chain
- 中国艾草行业研究与投资前景预测报告(2022版)
猜你喜欢

AutoCAD - feature matching

Create a pyGame window with a blue background

Manually implement heap sorting -838 Heap sort

AutoCAD - isometric annotation
![[Business Research Report] Research Report on male consumption trends in other economic times -- with download link](/img/08/7ea490c46c3f64af3e78d07b19b3e3.jpg)
[Business Research Report] Research Report on male consumption trends in other economic times -- with download link

On-off and on-off of quality system construction

Special information | finance, accounting, audit - 22.1.23

AutoCAD - workspace settings

LeetCode之單詞搜索(回溯法求解)

UE4/UE5 虚幻引擎,材质篇,纹理,Compression and Memory压缩和内存
随机推荐
[groovy] closure (Introduction to closure class closure | closure parametertypes and maximumnumberofparameters member usage)
猿人学第一题
China as resin Market Research and investment forecast report (2022 Edition)
Create a pyGame window with a blue background
Is $20billion a little less? Cisco is interested in Splunk?
Unity parallax infinite scrolling background
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
2021 electrician cup (the 12th "China Society of electrical engineering Cup" National Undergraduate electrician mathematical modeling) detailed ideas + codes + references
Common database statements in unity
AutoCAD - feature matching
Lua wechat avatar URL
Séparation et combinaison de la construction du système qualité
AutoCAD - stretching
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
669. 修剪二叉搜索树 ●●
Special information | real estate and office buildings - 22.1.9
中国艾草行业研究与投资前景预测报告(2022版)
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link
Thinking of 2022 American College Students' mathematical modeling competition
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis