Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
f7ef1d50
Commit
f7ef1d50
authored
Aug 31, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
bf33927b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1957 additions
and
6 deletions
+1957
-6
portal-manager-ui/admin/src/views/thePlatformIsSet/animation.js
...-manager-ui/admin/src/views/thePlatformIsSet/animation.js
+1934
-0
portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue
...ger-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue
+23
-6
No files found.
portal-manager-ui/admin/src/views/thePlatformIsSet/animation.js
0 → 100644
View file @
f7ef1d50
This diff is collapsed.
Click to expand it.
portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue
View file @
f7ef1d50
...
...
@@ -1936,10 +1936,25 @@ class ShapeAnimComp {
class
RollEventComp
{
constructor
(
data
)
{
this
.
name
=
"
RollEventComp
"
;
let
index
=
0
;
let
set
=
setInterval
(
function
()
{
index
+=
0.004
;
// let set = setInterval(function () {
// index += 0.004;
// data.cb(index);
// if (index >= 0.43) {
// document.getElementsByClassName("effect-box")[0]
// ? (document.getElementsByClassName(
// "effect-box"
// )[0].style.backgroundColor = `rgba(3, 18, 51, ${
// 0 ? 0 : 0.5 - index
// })`)
// : "";
// }
// if (index > 1) {
// clearInterval(set);
// }
// });
function
fn
()
{
index
+=
0.015
;
data
.
cb
(
index
);
if
(
index
>=
0.43
)
{
document
.
getElementsByClassName
(
"
effect-box
"
)[
0
]
...
...
@@ -1950,10 +1965,12 @@ class RollEventComp {
}
)`
)
:
""
;
}
if
(
index
>
1
)
{
clearInterval
(
set
);
if
(
index
<
1.
1
)
{
window
.
requestAnimationFrame
(
fn
);
}
});
}
window
.
requestAnimationFrame
(
fn
);
// window.addEventListener("scroll", (event) => {
// const scrollTop = document.documentElement.scrollTop;
// const scrollHeight = document.documentElement.scrollHeight;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment