diff --git a/README.md b/README.md index cf3cc4431217cda09010843d144139cf03916d1f..44417ae9d4d7fd8e16a11a8512a4230a0dbb7f41 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ 本地预览 ```bash -npm i docsify -g +npm i npm run dev ``` diff --git a/blog/front-end-combat/demo/background-image.html b/blog/front-end-combat/demo/background-image.html new file mode 100644 index 0000000000000000000000000000000000000000..469e7bca2ee327ccdbdcacac620a06f5888d8fd2 --- /dev/null +++ b/blog/front-end-combat/demo/background-image.html @@ -0,0 +1,10 @@ + + +
\ No newline at end of file diff --git a/blog/front-end-combat/demo/transform-3d-perspective.html b/blog/front-end-combat/demo/transform-3d-perspective.html new file mode 100644 index 0000000000000000000000000000000000000000..8ba60706b86342d3afb4cd5643479f55edb96d3a --- /dev/null +++ b/blog/front-end-combat/demo/transform-3d-perspective.html @@ -0,0 +1,21 @@ + + +
+
+
\ No newline at end of file diff --git a/blog/front-end-combat/demo/transform-mask.html b/blog/front-end-combat/demo/transform-mask.html new file mode 100644 index 0000000000000000000000000000000000000000..3daeaa85f747b2811c3bded1b97dfeb6beef5b34 --- /dev/null +++ b/blog/front-end-combat/demo/transform-mask.html @@ -0,0 +1,69 @@ + + + + + +
+

百日依山尽

+
+ +
+
\ No newline at end of file diff --git a/blog/front-end-combat/demo/transform-rotate3d.html b/blog/front-end-combat/demo/transform-rotate3d.html new file mode 100644 index 0000000000000000000000000000000000000000..63d8e8e1ba5f898d17c09de071b165cc035e1c0a --- /dev/null +++ b/blog/front-end-combat/demo/transform-rotate3d.html @@ -0,0 +1,48 @@ + + +
+
+ +
+ +
+
\ No newline at end of file diff --git a/blog/front-end-combat/index.md b/blog/front-end-combat/index.md index b29043a134d0e9d63d5affcd14bf5b344cb16fb7..fbfdbb3ee418ea9fec4f9243df2d6722808a324d 100644 --- a/blog/front-end-combat/index.md +++ b/blog/front-end-combat/index.md @@ -6,7 +6,9 @@ 2. [平面转换 transform](blog/front-end-combat/transform.md) -- css3 平面空间转换、渐变、动画属性 +3. [空间转换 transform](blog/front-end-combat/transform-3d.md) + +- css3 平面、渐变、动画属性 - Flex 布局 - 移动适配 - 响应式 BootStrap 框架 diff --git a/blog/front-end-combat/transform-3d.md b/blog/front-end-combat/transform-3d.md new file mode 100644 index 0000000000000000000000000000000000000000..331375783a3484f2324ca21486a5b5159d7a6ef4 --- /dev/null +++ b/blog/front-end-combat/transform-3d.md @@ -0,0 +1,72 @@ +# 空间转换(3D 转换) + +空间内位移、旋转、缩放 + +z 轴的正方向指向用户(屏幕外边方向) + +语法 + +```css +transform: translate3d(x, y, z); + +transform: translateX(x); +transform: translateY(y); +transform: translateZ(z); +``` + +取值: + +- 正负均可 +- 百分比 +- 像素值 + +## 1、透视 + +perspective 视线透视效果 + +透视效果:近大远小,近实远虚 + +父级添加属性 + +```css +/* 透视距离(视距): 人眼睛到屏幕的距离 */ +perspective: 像素值; /* (800-1200) */ +``` + +示例: + +[](demo/transform-3d-perspective.html ':include :type=code') + +[](demo/transform-3d-perspective.html ':include height=220') + +## 2、空间旋转 rotate + +语法 + +```css +transform: rotateZ(角度); +transform: rotateX(角度); +transform: rotateY(角度); +``` + +示例: + +[](demo/transform-rotate3d.html ':include :type=code') + +[](demo/transform-rotate3d.html ':include height=220') + +## 左手法则: 判断旋转方向 + +左手握住旋转轴,拇指指向正值方向,手指弯曲方向为旋转正值方向 + +## rotate3d(了解) + +自定义旋转周的位置及旋转角度 + +```css +rotate3d(x, y, z, 角度); +``` + +x, y, z 取 0-1 之间的数字 + +https://www.bilibili.com/video/BV1xq4y1q7jZ?p=34&spm_id_from=pageDriver \ No newline at end of file diff --git a/blog/front-end-combat/transform.md b/blog/front-end-combat/transform.md index ced9e4c9f7b350c1a5dee6256b0086d5ee79b83b..d6d28d85bf02161b2c3bee0c0d87dcb6c053acd6 100644 --- a/blog/front-end-combat/transform.md +++ b/blog/front-end-combat/transform.md @@ -132,3 +132,19 @@ transform: scale(缩放倍数); [](demo/transform-scale.html ':include height=270') https://www.bilibili.com/video/BV1xq4y1q7jZ?p=19&spm_id_from=pageDriver + +## 渐变背景 background-image + +示例 1: + +[](demo/background-image.html ':include :type=code') + +[](demo/background-image.html ':include height=220') + +示例 2: + +[](demo/transform-mask.html ':include :type=code') + +[](demo/transform-mask.html ':include height=170') + + diff --git a/blog/front-end-learn/index.md b/blog/front-end-learn/index.md index 5bf37dedd60b943c31018c64036ad1913515f2d0..9ec6acf5599419491ef96c8483c59f33530431fd 100644 --- a/blog/front-end-learn/index.md +++ b/blog/front-end-learn/index.md @@ -1,18 +1,6 @@ # 笔记:web 前端开发入门 - - -## 资源 - -[2022 年前端学习路线图](https://www.bilibili.com/read/cv10431130) - -[黑马程序员 web 前端开发入门教程,前端零基础 html5+css3+前端项目视频教程](https://www.bilibili.com/video/BV1Kg411T7t9) - -[菜鸟教程-HTML 教程- (HTML5 标准)](https://www.runoob.com/html/html-tutorial.html) - -[https://developer.mozilla.org/zh-CN/](https://developer.mozilla.org/zh-CN/) - -## 内容 +视频:[黑马程序员 web 前端开发入门教程,前端零基础 html5+css3+前端项目视频教程](https://www.bilibili.com/video/BV1Kg411T7t9) 1. [HTML 基本认知](blog/front-end-learn/html-basic.md) diff --git a/doc/html.md b/doc/html.md index f9f22f84495367b570431ac5cce2db78a96e0034..fa024a506ee7706e82ed981da719769b9efd17b2 100644 --- a/doc/html.md +++ b/doc/html.md @@ -23,3 +23,11 @@ [w3school](https://www.w3school.com.cn/) [我要自学网-WEB 前端开发视频教程](http://www.51zxw.net/list.aspx?cid=393) + +## 资源 + +[2022 年前端学习路线图](https://www.bilibili.com/read/cv10431130) + +[菜鸟教程-HTML 教程- (HTML5 标准)](https://www.runoob.com/html/html-tutorial.html) + +[https://developer.mozilla.org/zh-CN/](https://developer.mozilla.org/zh-CN/) diff --git a/index.html b/index.html index cbd4cf4d05244e1cc342fc80392f27d166c87eae..8936ed63b5cf814f53164cf0e0571544590e1c81 100644 --- a/index.html +++ b/index.html @@ -41,9 +41,11 @@ } + +