+ 3

Can anyone tell me how to make this border color gradient?pls see the transition on hovering[solved]

https://code.sololearn.com/WSop65DI8cUh/?ref=app

12th Aug 2020, 2:36 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
12 Respostas
+ 5
Use border-image: linear-gradient(#f6b73c, #4d9f0c) 30; https://code.sololearn.com/WroFXn1pSSKP/?ref=app
12th Aug 2020, 3:31 PM
Calviղ
Calviղ - avatar
+ 3
You can't make border Linear-gradient, but you can add another div element back of it and make the div background linear-gradient and padding will give the border size. Here is the demo you can edit later https://code.sololearn.com/W9Ehf5Q5tpLs/?ref=app
12th Aug 2020, 3:00 PM
v@msi😉
v@msi😉 - avatar
12th Aug 2020, 3:39 PM
v@msi😉
v@msi😉 - avatar
+ 2
I think there shd be a way to create that same animation, try it😇
12th Aug 2020, 3:10 PM
v@msi😉
v@msi😉 - avatar
+ 2
Pls see the transition by hovering on button
12th Aug 2020, 3:33 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 2
As you say
12th Aug 2020, 3:48 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 1
No css transtion then am I right?
12th Aug 2020, 3:03 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 1
Not animation sorry ,you see when you hover to button the transition
12th Aug 2020, 3:19 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 1
Ok I'm trying will tell if that works
12th Aug 2020, 3:37 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 1
Thanks a lot
12th Aug 2020, 3:42 PM
Yash Arora🇮🇳
Yash Arora🇮🇳 - avatar
+ 1
You are welcome, but Calviղ given you best answer not me🙂
12th Aug 2020, 3:46 PM
v@msi😉
v@msi😉 - avatar
0
Do as Calviղ said it works transition also✌️
12th Aug 2020, 3:36 PM
v@msi😉
v@msi😉 - avatar