Skip to content

Commit

Permalink
Rename effects / diversify display text
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed Apr 27, 2019
1 parent e5628eb commit 6b61a89
Show file tree
Hide file tree
Showing 31 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion effects/button-bubble-bl.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Bubble</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-bubble-br.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Bubble</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-bubble-tl.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Bubble</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-bubble-tr.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Bubble</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-bubble.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Bubble</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-jelly.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Jelly</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-pulse.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Pulse</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-shine.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Shine</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-slide-down.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Slide</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-slide-left.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Slide</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-slide-right.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Slide</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/button-slide-up.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button>Button</button>
<button>Slide</button>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-over-under.vue → effects/hover-bars.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Bars</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-over-under2.vue → effects/hover-bars2.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Bars</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-over-under3.vue → effects/hover-barsr3.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Bars</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-highlight-right.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Highlight</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-highlight-up.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Highlight</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-overline.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Overline</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-overline2.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Overline</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-left-right.vue → effects/hover-pillars.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Pillars</span>
</template>

<style scoped>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Pillars</span>
</template>

<style scoped>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Pillars</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-strikethrough.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Strikethrough</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-underline.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Underline</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-underline2.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Underline</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/hover-underline3.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>Hover</span>
<span>Underline</span>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion effects/input-outline.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<input type="text" placeholder="Input">
<input type="text" placeholder="Outline">
<span class="bottom"></span>
<span class="right"></span>
<span class="top"></span>
Expand Down
40 changes: 11 additions & 29 deletions effects/input-outline2.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<input type="text" placeholder="Input">
<input type="text" placeholder="Outline">
<span class="bottom"></span>
<span class="right"></span>
<span class="top"></span>
Expand Down Expand Up @@ -36,7 +36,8 @@ input::placeholder {
span {
position: absolute;
background-color: #fc2f70;
transition: transform 0.1s ease;
transform-origin: center;
transition: transform 0.5s ease;
}
.bottom,
Expand All @@ -55,46 +56,27 @@ span {
transform: scaleY(0);
}
.top {
top: 0;
}
.bottom {
bottom: 0;
transform-origin: bottom right;
}
input:focus ~ .bottom {
transform-origin: bottom left;
transform: scaleX(1);
.left {
left: 0;
}
.right {
right: 0;
transform-origin: top right;
transition-delay: 0.05s;
}
input:focus ~ .right {
transform-origin: bottom right;
transform: scaleY(1);
}
.top {
top: 0;
transform-origin: top left;
transition-delay: 0.15s;
}
input:focus ~ .top {
transform-origin: top right;
input:focus ~ .top, input:focus ~ .bottom {
transform: scaleX(1);
}
.left {
left: 0;
transform-origin: bottom left;
transition-delay: 0.25s;
}
input:focus ~ .left {
transform-origin: top left;
input:focus ~ .left, input:focus ~ .right {
transform: scaleY(1);
}
</style>
40 changes: 29 additions & 11 deletions effects/input-outline3.vue → effects/input-trace.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<input type="text" placeholder="Input">
<input type="text" placeholder="Trace">
<span class="bottom"></span>
<span class="right"></span>
<span class="top"></span>
Expand Down Expand Up @@ -36,8 +36,7 @@ input::placeholder {
span {
position: absolute;
background-color: #fc2f70;
transform-origin: center;
transition: transform 0.5s ease;
transition: transform 0.1s ease;
}
.bottom,
Expand All @@ -56,27 +55,46 @@ span {
transform: scaleY(0);
}
.top {
top: 0;
}
.bottom {
bottom: 0;
transform-origin: bottom right;
}
.left {
left: 0;
input:focus ~ .bottom {
transform-origin: bottom left;
transform: scaleX(1);
}
.right {
right: 0;
transform-origin: top right;
transition-delay: 0.05s;
}
input:focus ~ .right {
transform-origin: bottom right;
transform: scaleY(1);
}
.top {
top: 0;
transform-origin: top left;
transition-delay: 0.15s;
}
input:focus ~ .top, input:focus ~ .bottom {
input:focus ~ .top {
transform-origin: top right;
transform: scaleX(1);
}
input:focus ~ .left, input:focus ~ .right {
.left {
left: 0;
transform-origin: bottom left;
transition-delay: 0.25s;
}
input:focus ~ .left {
transform-origin: top left;
transform: scaleY(1);
}
</style>
2 changes: 1 addition & 1 deletion effects/input-underline.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<input type="text" placeholder="Input">
<input type="text" placeholder="Underline">
<span></span>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion effects/input-underline2.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<input type="text" placeholder="Input">
<input type="text" placeholder="Underline">
<span></span>
</div>
</template>
Expand Down

0 comments on commit 6b61a89

Please sign in to comment.