HTML, CSS and Javascript very cool border rotating glowing effects [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
So i came accross the following template but due to the fact they have base64 encrypted their javascript / page elements for god only knows what reason it makes seeing the source code very difficult.
http://yootheme.com/demo/themes/joomla/2010/planet/index.php?option=com_content&view=article&id=44&Itemid=53&preset=default
But on that page the header bar with the class "header-bg" seems to have the background-position constantly changing most likely via the use of javascript and i like the design and effect of the colors so i am curious if someone can help me or fiddle to me a demo of how they are doing this.
I love the way the border effect is constantly rotating around in different variations of colors like that. (Not sure if anyone else finds that beautiful)

They use a background image, and they animate background-position using JS.
Here I use CSS animations instead:
#keyframes bg {
from {
background-position: 0 0;
}
to {
background-position: 1500px 0;
}
}
.header-bg {
border-radius: 15px; /* outerRadius */
padding: 3px; /* separation */
animation: bg 10s infinite linear;
background: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD/2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCAEsBdwDAREAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAgABAwX/xAAVEAEBAAAAAAAAAAAAAAAAAAAAAf/EABcBAQEBAQAAAAAAAAAAAAAAAAABAgf/xAAVEQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEQMRAD8A811pyNAgQIECBsRkoyhxmoUZZOMslGUOMMlEQoxWSjKHGWTjCFGUKM1k4zWSjKHGUKMMlGUOM1koyycZQoxUOMslGWSjKHGUKM1k4whRlk4zWSjNQmRAgQIECBAgQIECAUFQYioGIrAYisBVBiKygxFVBiKyoqARVUGIMoqQZUVgMFVQYgxFYDEEKxFQqBAgQIECBAgQIECBAgbBlK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oFajQtKytKKqLSi0o1WhrSi0rGlGqo1pRaaGqo1pRaUa0oqo1ppCoECBAgQIECBAgQHGWCjFQ4yycZZKMoUZZOMoUYqFGWTjKHGWSjCFGayUZrJxlDjKFGGSiIcYrJRlk4yhRmocYZKMoUZZOMoUZrJxlCjDJxlCjLJMiBAgQIECBAgQIEAgqgxFQMRUAorASDBWVBiKqDEGVGkAiqoMQZRUgyoMFVFYgxBiKwGIIViKhUCBAgQIECBAgQIECBAoI1UbFRA2A1Uao1UQEqJRoiUaBKiBqo2KiBsVGg1USjQJUQjVEo0RqjQQIECBAgQIECBAwGVoFqKNaaGqrGlBqKxVGtNDWlGqo1pRVRraiqjWlZWo0NVRrSiqjWlFpoa0o1Yo1pRrSiqsaaBpRrSsqqLajVUa00NVWNKNaUaqjWmhaUVUa0qFQIECBAgQIECBAgf/9k=") repeat scroll 0px 0px transparent;
}
.header-inner {
background: #fff;
border-radius: 12px; /* outerRadius - separation */
padding: 5px;
}
<div class="header-bg">
<div class="header-inner">Foo bar</div>
</div>
Also note that a gradient could be used instead of that image.

Related

How do I apply multiple transform-origin on Javascript/HTML/CSS? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
How do I apply 2 different CSS transforms to a single HTML element with different transform-origin for each?
You would need to work out the matrix value for each and then add them together using matrix mathematics. Their are some online calculators that can help with this
http://angrytools.com/css-generator/transform/
Set two DOM's of the same size, Set transform-origin for each individually
div{
height: 300px;
width: 300px;
}
.origin1 {
background-color: orange; /*Set to transparent*/
transform-origin: 0 0;
transform: scale(0.5, 0.5);
}
.origin2 {
background-color: blue;
transform-origin: 300px 300px;
transform: rotate(45deg)
}
<div class="origin1">
<div class="origin2"></div>
</div>

How to fade out all elements except focused element in jQuery? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am not good in front end. But now I need to write some jQuery. What I want to do is I have a text box. It has many parents element including HTML body tag. What I want to do is I want to change all the color a little dark with opacity for the rest of elements except that text box when it is focused.
The fading is something like modal box in Bootstrap. How can I achieve that?
you could add a huge box-shadow (100vmax is enough to cover all the viewport), maybe with a short transition, to the input element when it receives focus, e.g.
input {
box-shadow: 0 0 0 100vmax rgba(0,0,0, 0);
transition: 1s box-shadow
}
input:focus {
box-shadow: 0 0 0 100vmax rgba(0,0,0, .7);
}
Codepen example: http://codepen.io/anon/pen/pjpqjg
When the input loses the focus, the effect disappears with the same duration.
Note: On Safari this effect based on box-shadow doesn't work unless you set -webkit-appearance: none;, but you might use an outline instead (tested on Version 9.0 (9537.86.1.56.2)/MacOS 10.9.5)
input {
outline: 100vmax rgba(0,0,0, 0) solid;
-webkit-transition: 1s outline;
transition: 1s outline;
}
input:focus {
outline: 100vmax rgba(0,0,0, .7) solid;
}
Codepen example: http://codepen.io/anon/pen/pjpqRb

CSS Rectangle As links [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have 3 rectangles that I've created with CSS. I want them to be clickable and link them to a file called "index.html". I've been searching over the web but could not find a way to do it. Is there also a way where hovering your mouse over the rectangle would just have the index.html file pop up but not open in a completely new window? Here is a snippet of what I have so far:
.rec
{
height: 100px;
width: 125px;
}
#d1
{
background : lightgreen;
border: 2px solid black;
display: inline-block;
left: 0%;
}
#r1
{
background : red;
border: 2px solid black;
display: inline-block;
left: 10%; position: relative;
}
#r3
{
background : white;
border: 2px solid black;
display: inline-block;
left: 20%; position: relative;
}
You should see JavaScript and jQuery tutorials. It's what, mostly, makes web pages interactive. Although in here, the best solution is clearly to use
<a href="index.html">
it would be good for you to learn them, and their incredible power. Check this fiddle here: http://jsfiddle.net/qjntjyyr/
As you can see, it's quite simple. In the next fiddle, I'm using an event for when the mouse goes over the squares.
http://jsfiddle.net/qjntjyyr/1/
Have fun with it, you can manipulate almost everything you want.
The clickable rectangles:
Index
Index
Index
As for the little box that appears when you hover them, you could use a title="" in the anchor tag, but that has the default styling the OS gives it. To customize one yourself you'd need JavaScript.
I found an interesting link to learn for your problem:css-trick
But the first answer is a good one to use.

Add hover effect to a picture [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Hello Everyone!
I am designing a website for myself and I am making this sick front page but I need to know how to make it work.
From this when it's normal:
http://i.stack.imgur.com/QM0c0.png (Copy and paste in a different browser, I cannot post direct images)
And this would be how it'd look when you hover over it, the background would fade black and the image would pop out with a bigger size:
http://i.stack.imgur.com/dsvmu.png
Anyone knows how to do this?
Kind Regards!
You will need to make 2 divs
'Div1 Small Button' and
'Div2 Big Button'
Then you will need to make them showing and hiding with jQuery.
And make it like: if hover that button then show Div2 Big Button else hide.
This is how you do it with pure CSS. Best way is to use the :hover property.
HTML:
<img src="http://i.stack.imgur.com/dsvmu.png"/>
CSS:
img{
height:200px;
width:200px;
}
img:hover{
width:400px; /*OR transform: scale(1.5)*/
box-shadow: 10px 10px 5px #888888;
}
Fiddle here. Hover over the image to see the effect.
Also if you want the background to be colored as in your image then wrap the image inside a div. And use the following css:
<div><img src="http://i.stack.imgur.com/dsvmu.png"/></div>
CSS:
div {
pointer-events: none;
}
img {
pointer-events: auto;
}
div:hover {
background: rgba(0,0,0,0.3);
}
img{
height:200px;
width:200px;
}
img:hover{
width:400px; /*OR transform: scale(1.5)*/
box-shadow: 10px 10px 5px #888888;
}
Upadated fiddle.
I will suggest to use transform css property to resize the same image when user hover on it.
.banner img:hover {
transform: scale(1.25);
}

How to effect click google map? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In the new google maps, when you click on on the map, it looks like a circle animates from the point you clicked that expands then disappears. When you click on a road, a dot appears, and appears to pulsate every few seconds. How can one accomplish this effect with or without google maps?
In other words, a user can click on a blank space on a page and have the same animated click effect where:
1) Clicking anywhere on HTML page or within a div causes a circle to slowly expand from where the user clicked to be about 5px, then fades out and disappears.
2) Clicking anywhere on HTML page or within a div causes a dot of maybe 3px to appear on the page and (a second circle?) that enlarges from the point of the dot with outline only, that expands for 5px... fades out and disappears... over and over again. (dot remains in place, just the animated circle that continues to "pulsate"
Looking for the best solution can be anywhere from CSS3, Javascript (with or without any libraries) or HTML5.
Interesting idea. After some fiddling, here are the approaches I made
1) Using javascript to append a new element at the clicked location and some CSS animations I came up with this demo
The corresponding CSS animation:
#keyframes grow {
0% {
width: 5px;
height: 5px;
margin-top: -2.5px;
margin-left: -2.5px;
}
50% {
margin-top:-7.5px;
margin-left: -7.5px;
width: 15px;
height: 15px;
opacity: 1;
}
100% {
margin-top:-12.5px;
margin-left: -12.5px;
width: 25px;
height: 25px;
opacity: 0;
}
}
2) I couldn't recreate what you mean for this one on Google maps, but from your description I came up with this demo
The corresponding CSS animation for that:
#keyframes pulse {
0% {
width: 5px;
height: 5px;
margin-top: -4.5px;
margin-left: -4.5px;
}
100% {
margin-top:-14.5px;
margin-left: -14.5px;
width: 25px;
height: 25px;
}
}
These approaches will work on any browsers that support CSS3 animation, the list can be found here. A fallback similar solution would be to use the same approach but use jQuery's .animate or something similar instead
If animations are not supported, the first would simply be a 5px by 5px circle, removed after a second. The second would be a black dot that lasts until the document is clicked again.
Side note: in its current state it won't work in IE I believe because it does not support document.getElementsByClassName

Categories

Resources