B
B
bro-dev2015-09-25 03:04:13
css
bro-dev, 2015-09-25 03:04:13

How to implement a shadow like a harb logo in CSS?

logo
Is it possible to make such a shadow on CSS ?, now I have done 100 shadows I generate like this

var i="text-shadow: ";
 for(var c=50;c;c-=1){
  		i+=c+"px "+c/1.2+"px #8BAAB5,";
  		i+=c/1.2+"px "+c+"px #8BAAB5,";
  	}


 $("<style>")
    .prop("type", "text/css")
    .html("\
    .shadow-long{"+i+"}")
    .appendTo("head");

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zubarev, 2015-09-25
@zualex

I usually use the long shadow generator

P
profesor08, 2015-09-25
@profesor08

For example, do not generate each time in JavaScript, but generate 1 time and push it into a .css file and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question