Elvis Miranda

Elvis Miranda

1565686760

Ripple button with VueJS

I tried to re-design the animation, and the movement of the pen that I did before. I tried to improve it, but I think, it still needs an improvement. I still have to study more, and redo it.

How it works

Placing of a ripple

With the source code below, we can put the location of a ripple.

// Get the exact location of the button from the screen.
let pos = el.getBoundingClientRect();

// 'this.ripples' is a looped variable for the ripples element.
this.ripples.push({
    x: e.clientX - pos.left,
    y: e.clientY - pos.top
});

Expansion of a ripple

The expansion of a ripple is made in CSS animation.

.ripple {
    background-color: #ff1ead;
    width: 1rem;
    height: 1rem;
    position: absolute;
    border-radius: 50%;
    /* After we placed the ripple, this code below will put the ripple element at the center of the clicked area */
    transform: translateX(-100%) translateY(-100%);
    mix-blend-mode: screen;
    animation: ripple 1000ms ease-out forwards;
}

/* From original position, we are going to scale the element to 1rem * 50. It is somehow enormous, and it will occupy the whole space of the button, and then, set the opacity to 0. */
@keyframes ripple {
    0%   { transform: translate(-100%, -100%); }
    80%  { transform: translate(-100%, -100%) scale(50); }
    100% { transform: translate(-100%, -100%) scale(50); opacity: 0; }
}

After animation

After the animation, we have to destroy the element, so that our element will not be flooded by a ripple element.

// You will notice the code below at the template of the component.
// v-on:animationend="rippleEnd(i)"
// It is an 'onanimationend' event that will be triggered after the CSS animation was ended.

// Yes, I simply spliced the element from the ripples array.
rippleEnd: function(i) {
    this.ripples.splice(i, 1);
}

Suggestions

This behaviour is not yet perfect. Especially, when the animation was ended, you can’t put any ripples after a second (The exact animation time). I don’t know if this is a bug, or there is something I did not do well. So if some of you got a suggestion, please comment down below. Very much appreciated.

Thank you!

How to Get Query String Parameters in Vue.js

Vuestic Admin

Set Up a Vue.js Development Environment

#vue-js

What is GEEK

Buddha Community

Ripple button with VueJS

Hire Dedicated VueJS Developers

Want to Hire VueJS Developer to develop an amazing app?

Hire Dedicated VueJS Developers on the contract (time/project) basis providing regular reporting about your app. We, at HourlyDeveloper.io, implement the right strategic approach to offer a wide spectrum of vue.js development services to suit your requirements at most competitive prices.

Consult with us:- https://bit.ly/2C5M6cz

#hire dedicated vuejs developers #vuejs developer #vuejs development company #vuejs development services #vuejs development #vuejs developer

Linda nano

Linda nano

1623787200

XRP Ripple gets BIG PRAISE from the International Monetary Fund, WHY RIPPLE WILL WIN

In this video I discuss how much more room I believe bitcoin has to grow. We also discuss some xrp ripple price targets and how high ripple xrp could go. To wrap it up I share some interesting information on the IMF and digital money, and specifically ripple xrp and its ability to do cross border payments and remittances.
📺 The video in this post was made by Crypto 2103
The origin of the article: https://www.youtube.com/watch?v=I033_J_Wbxo
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
(There is no limit to the amount of credit you can earn through referrals)
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #xrp ripple #xrp ripple #ripple #xrp ripple gets big praise from the international monetary fund, why ripple will win

Linda nano

Linda nano

1623169140

XRP ripple news today, JUDGE just ruled in favor of RIPPLE on...

In this video I discuss a few various stories from today. Including a massive win for xrp in the Ripple vs. Sec lawsuit. No xrp price predictions here, but I see lots of potential in xrp ripple. What are your thoughts on the current state of the markets?!
📺 The video in this post was made by Crypto 2103
The origin of the article: https://www.youtube.com/watch?v=plVpLvNTOIg
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
(There is no limit to the amount of credit you can earn through referrals)
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #xrp ripple news today #xrp ripple #judge #ripple

Linda nano

Linda nano

1624323600

XRP Ripple News - SEC Motion to DISMISS Ripple XRP Defense & Major Discovery Battle

📺 The video in this post was made by Crypto 2103
The origin of the article: https://www.youtube.com/watch?v=bzCxsLKp79A
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #xrp ripple news #xrp #xrp ripple news - sec motion to dismiss ripple xrp defense & major discovery battle #xrp ripple news - sec motion to dismiss ripple xrp defense & major discovery battle

Linda nano

Linda nano

1624551180

XRP Ripple News Today, Ripple CTO and Co-Founder Just CREATED THIS...

In this video I discuss some xrp ripple news today as well as xrp price predictions for the future. XRP Ripple CTO and Co Founder created a podcast called block stars! Amidst all this fud and lawsuit regulation it is good to see Ripple and XRP making positive moves for the future. In the short term what do you think of the markets and bitcoin?! As always not financial advise, I am just a regular person like you, make sure to do your own research!

📺 The video in this post was made by Crypto 2103
The origin of the article: https://www.youtube.com/watch?v=pMiAuu8d3eA
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #xrp ripple news #ripple cto #xrp ripple news today, ripple cto and co-founder just created this...