Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeChen committed Nov 23, 2024
1 parent e30c1b8 commit 10d136b
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 11 deletions.
116 changes: 109 additions & 7 deletions CascadingStyleSheets/Services/services.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
File: services.css (https://github.com/SeeChen/seechen.github.io/blob/main/CascadingStyleSheets/Services/services.css).
Part of [seechen.github.io] (https://github.com/SeeChen/seechen.github.io).
Copyright (C) 2024 LEE SEE CHEN.
This file is licensed under the GNU General Public License v3.0 (GPLv3).
You can redistribute it and/or modify it under the terms of the GPLv3.
For more details, see <https://www.gnu.org/licenses/>.
*/

:root {

Expand Down Expand Up @@ -38,6 +48,8 @@
--service-Service-Content-4-div-8-img-height: 50vh;
--service-Service-Content-4-div-9-img-width: auto;
--service-Service-Content-4-div-9-img-height: 40vh;

--service-Service-Content-5-p-child-2-width: 60vw;
}

@keyframes animation_9 {
Expand Down Expand Up @@ -93,6 +105,8 @@
--service-Service-Content-4-div-8-img-height: auto;
--service-Service-Content-4-div-9-img-width: 60vw;
--service-Service-Content-4-div-9-img-height: auto;

--service-Service-Content-5-p-child-2-width: 80vw;
}

@keyframes animation_9 {
Expand Down Expand Up @@ -318,6 +332,40 @@
overflow: hidden hidden;
}
}
@keyframes animation_12 {

0%, 25% {

opacity: 0;
transform: translateY(-10vh);
}

50% {
opacity: 1;
transform: translateY(0);
}

100% {
opacity: 0;
}
}
@keyframes animation_13 {

0%, 35% {

opacity: 0;
transform: translateY(-10vh);
}

50% {
opacity: 1;
transform: translateY(0);
}

100% {
opacity: 0;
}
}

#box_ServicesPage {

Expand Down Expand Up @@ -553,7 +601,7 @@ div:has( > #services_Content_2) {

position: relative;

height: 500vh;
height: 600vh;

margin-top: 10vh;
}
Expand Down Expand Up @@ -1144,18 +1192,72 @@ div:has( > #services_Content_2) {
margin-top: -80vh;

width: 100vw;
height: 100vh;
height: 200vh;
}

#services_Content_5 > div:first-child {

position: sticky;

max-width: max-content;
height: 30vh;

top: 70vh;
left: 100vw;
}

#services_Content_5 p {
#services_Content_5 > div:first-child > p {

font-size: var(--font-size-3em);
font-family: var(--fontface-content-3);
font-family: var(--fontface-title);
color: var(--bg-color);

height: 1.2em;
line-height: 1.2em;
display: list-item;
list-style-type: none;

max-width: max-content;

padding-right: 1em;
opacity: 0;

width: 40vw;
animation: animation_12 1s linear;
animation-timeline: view();
animation-range: 0vh 150vh;
animation-fill-mode: forwards;
}

#services_Content_5 > p:nth-child(2) {

position: sticky;

top: 45vh;
left: 0;
right: 0;

margin: auto;

text-align: center;

font-size: var(--font-size-2em);
color: var(--bg-color);
font-family: var(--fontface-content-3);

width: var(--service-Service-Content-5-p-child-2-width);

animation: animation_13 1s linear;
animation-timeline: view();
animation-range: 0vh 150vh;
animation-fill-mode: forwards;
}

#services_Content_6 {

position: relative;

width: 100vw;
height: 100vh;

background: red;

margin-top: -60vh;
}
24 changes: 20 additions & 4 deletions spa.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<!-- https://seechen.github.io -->
<!--
File: spa.html (https://github.com/SeeChen/seechen.github.io/blob/main/spa.html).
Part of [seechen.github.io] (https://github.com/SeeChen/seechen.github.io).
Copyright (C) 2024 LEE SEE CHEN.
This file is licensed under the GNU General Public License v3.0 (GPLv3).
You can redistribute it and/or modify it under the terms of the GPLv3.
For more details, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html>
<head>
Expand Down Expand Up @@ -155,11 +165,17 @@
</div>

<div id="services_Content_5">
<p>第一句话</p>
<p>第二句话</p>
<p>this is three</p>
<p>Haha, Four</p>
<div>
<p>第一句话</p>
<p>第二句话</p>
<p>Three</p>
<p>Four</p>
</div>

<p>一大段不知道什么的注释,暂时想不到。hahahahaha, Crazy.fkjdkfladfkljakl dffa </p>
</div>

<div id="services_Content_6"></div>
</div>
</div>

Expand Down

0 comments on commit 10d136b

Please sign in to comment.