Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
QiShaoXuan committed Jun 6, 2019
1 parent 11b6378 commit 0b7e8a5
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 90 deletions.
108 changes: 22 additions & 86 deletions docs/.vuepress/components/stickyBall.vue
Original file line number Diff line number Diff line change
@@ -1,90 +1,31 @@
<style scoped lang="scss">
.effect {
width: 100%;
height: 100%;
padding-top: 50px;
filter: blur(10px) contrast(30);
/*filter:contrast(10);*/
background: #fff;
}
.blackball {
width: 100px;
height: 100px;
background: black;
padding: 10px;
border-radius: 50%;
margin: 0 auto;
z-index: 1;
}
.redball {
width: 60px;
height: 60px;
background: #f00;
padding: 10px;
border-radius: 50%;
position: absolute;
top: 70px;
left: 50px;
z-index: 2;
left: 50%;
/*animation:rball 16s infinite;*/
}
@keyframes rball {
0%,
100% {
left: 35px;
width: 60px;
height: 60px;
}
4%,
54% {
width: 60px;
height: 60px;
}
10%,
60% {
width: 50px;
height: 70px;
}
20%,
70% {
width: 60px;
height: 60px;
}
34%,
90% {
width: 70px;
height: 50px;
.sticky-container {
background: #000;
overflow: hidden;
.blurfield {
height: 200px;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
filter: blur(10px) contrast(30);
}
41% {
width: 60px;
height: 60px;
.ball1,
.ball2 {
width: 80px;
height: 80px;
background-color: #fff;
position: absolute;
animation: ball 10s infinite;
border-radius: 100%;
}
50% {
left: calc(100% - 95px);
width: 60px;
height: 60px;
.ball2 {
animation-delay: -2s;
}
}
.blurfield {
display: flex;
justify-content: center;
align-items: center;
filter: blur(10px) contrast(30);
}
.ball1,
.ball2 {
background: red;
width: 80px;
height: 80px;
animation: ball 10s infinite;
border-radius: 100%;
}
.ball2 {
background: blue;
animation-delay: -2s;
}
@keyframes ball {
0% {
transform: translateX(-100px);
Expand All @@ -105,12 +46,7 @@
<div class="ball1"></div>
<div class="ball2"></div>
</div>
<!--<div class="effect">-->
<!--<div class="blackball"></div>-->
<!--<div class="redball"></div>-->
<!--</div>-->
</div>

</template>

<script>
Expand Down
5 changes: 1 addition & 4 deletions docs/notCSS/ripple.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## SCSS
<ripple-scssRipple/>


## JS
:::tip
具体使用请查看 <a href="https://github.com/QiShaoXuan/rhythm-ripple">https://github.com/QiShaoXuan/rhythm-ripple</a>
Expand Down Expand Up @@ -59,3 +55,4 @@
}
</script>
```

54 changes: 54 additions & 0 deletions docs/stickyBall/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
<stickyBall/>


```html
<div class="sticky-container">
<div class="blurfield">
<div class="ball1"></div>
<div class="ball2"></div>
</div>
</div>
```

```scss
.sticky-container {
background: #000;
overflow: hidden;

.blurfield {
height: 200px;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
filter: blur(10px) contrast(30);
}

.ball1,
.ball2 {
width: 80px;
height: 80px;
background-color: #fff;
position: absolute;
animation: ball 10s infinite;
border-radius: 100%;
}

.ball2 {
animation-delay: -2s;
}
}

@keyframes ball {
0% {
transform: translateX(-100px);
}

50% {
transform: translateX(100px);
}
100% {
transform: translateX(-100px);
}
}
```

Binary file removed placeholder.png
Binary file not shown.

0 comments on commit 0b7e8a5

Please sign in to comment.