Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
円柱周りの流れ解析 |
https://qiita.com/openyanagi/items/325393af47fd1ddbc026
|
flowarou |
2022-07-24 12:07:20 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
セキュリティグループからの通信許可はAWS::EC2::SecurityGroupIngressに書く |
https://qiita.com/tsukamoto/items/b37975f7e6db6ee8e4dd
|
securitygr |
2022-07-24 12:22:04 |
golang |
Goタグが付けられた新着投稿 - Qiita |
go1.18 は go1.17 よりはっきり遅いことがあるよ |
https://qiita.com/Nabetani/items/57b7adcc568029708526
|
twitter |
2022-07-24 12:46:31 |
海外TECH |
DEV Community |
Amazing! Implementing artistic graphics with CSS |
https://dev.to/chokcoco/amazing-implementing-artistic-graphics-with-css-1plg
|
Amazing Implementing artistic graphics with CSSI ve been wanting to write an article about the art of CSS creation for a long time This article mainly introduces how to use CSS to quickly create beautiful CSS graphics with the help of CSS doodle In short CSS doodle is a library based on Web Component It allows us to quickly create pages based on CSS Grid layouts and provides a variety of handy commands and functions random loops etc that allow us to get different CSS effects with a set of rules Take a look at its homepage ーHome Page of CSS doodle ーand you can get started quickly in just min Create a Center LayoutAll the tips in this article will revolve around this layout First we need such a central layout A simple HTML structure is as follows lt div class g container gt lt div class g box gt lt div gt lt div class g box gt lt div gt lt div class g box gt lt div gt lt div class g box gt lt div gt lt div class g box gt lt div gt lt div gt g container position relative width px height px g box position absolute top left margin left px margin top px width height border px solid Use absolute positioning and margin to center all elements horizontally and vertically because transform will be used later so this method of horizontal and vertical centering is selected the result is as follows Well it looks flat but based on this layout we can derive very interesting patterns Change Elements SizeThe simplest thing is that we can change the size of an element CSS code is too tiring to write so we simply rely on the pug HTML template engine and SASS div g container for var i i lt i div g box count for i from to count g box nth child i width i px width var width height var width margin left calc var width margin top calc var width Containing child elements under the container each of which increases in size incrementally it is easy to get the following result Change Elements ColorNext we proceed to change the color of the element so that it takes on a gradient color progression which could be border color for i from to count g box nth child i border color hsla calc i Get this effect It is also possible to change the color of the background background for i from to count g box nth child i background hsla calc i z index count i Change Elements AngleOkay next it s time to start transforming the angle we use transform to rotate the element by different angles for i from to count g box nth child i transform rotate i deg The effect is as follows CodePen Demo CSS PatternOK here some basic concepts are introduced almost in short the use of multiple elements centered layout change the size color transparency angle shadow filter blend mode etc etc as long as you can think of you can Next let s introduce the other main character of this article CSS doodle CSS doodle is a Web Component based library It allows us to quickly create pages based on CSS Grid layouts to achieve various CSS effects or perhaps we can call it CSS art The code for the final effect is essentially CSS and some of the specific concepts can be understood by clicking on the home page Use CSS doole to achieve multi element horizontal and vertical centering layoutLet s take the above layout and implement it again using CSS doodle To achieve a centered alignment of elements a simple declaration is needed as follows lt css doodle gt doodle grid x vmin place cell center lt css doodle gt What this means is that we declare a grid layout of x under a container of size vmin x vmin and use place cell center to center them all horizontally and vertically which means they will be stacked together This may not look good so we ll set different sizes for each element and give them all a simple border lt css doodle gt doodle grid x vmin place cell center size calc calc index border px solid lt css doodle gt size calc calc index indicates the size of the width and height of each child element or you can set the height and width separately index is a variable that indicates the number of the current element from indicating that each element is of the container s height and width of the container s height and width all the way up to of the container s height border px solid is the normal CSS code there is no variable inside it works on each elementThe effect is as follows Oh No the eyes are starting to glaze over In this way we have quickly implemented the graphical effect that was generated using HTML code and tedious CSS during the previous layouts Create CSS ArtNext the wonderful CSS art begins Change the rotation angle of the element and the border colorLet s use the above code to continue down the page first changing the base color of the overall container to black for better presentation and then changing the rotation angle of the elements Each element is rotated by deg x index The code is very short and looks like this lt css doodle gt doodle grid x vmin place cell center size calc calc index transform rotate calc index deg border px solid fff lt css doodle gt Not very good then we try to set a different border color progressively for each element and the transparency opacity decreases and here we will use the hsla color representation lt css doodle gt doodle grid x vmin place cell center size calc calc index transform rotate calc index deg border px solid hsla calc calc index calc index calc index lt css doodle gt And look at the effect All mapping has some color difference you can click into the Demo to seeWow the first piece of work looks pretty good Of course each different angle can produce a different effect through CSS doodle you can quickly generate different random values randomly generate different effects Let s change the above code a bit changing the transform line to introduce a random value lt css doodle gt doodle rotate r deg transform rotate calc index var rotate lt css doodle gt r deg which generates a random number between and which can be followed directly by a unit which becomes a random angle valuetransform rotate calc index var rotate using the calc rule to introduce a random CSS variable but of course without refreshing the page the value is fixed every timeThis way we can get a different effect each time we refresh the page of course CSS doodle is optimized to add just a few lines of code to refresh the effect by clicking on the page and the effect after the transformation we can get a new effect each time we click CodePen Demo CSS Doodle CSS Magic PatternStrongly recommend you click into the Demo and feel it yourself with a click of the mouse Set Different Background ColorsOkay let s change our thinking again this time instead of changing the color of the border we control the odd numbered elements and the even numbered elements by means of a selector giving them different background colors lt css doodle gt doodle grid x vmin place cell center size calc calc index transform rotate calc index deg background rgba calc index even background rgba calc index lt css doodle gt Using even you can quickly select an element with an even number and give it a white background while an odd numbered element is given a black background see the effect In the same way we can assign random values to the rotation angle of transform and use the black and white overlay to see what happens at different angles CodePen Demo CSS Doodle CSS Magic PatternOf course in the random process you can also pick your favorite ones and keep them CSS doodle supports many ways to introduce multiple graphics on one page like this CodePen Demo CSS doodle Pure CSS Pattern SummaryA small summary to generate different patterns in fact just need to find the ability to generate different lines or modeling pattern graphics they will be different sizes different rotation angle different colors and transparency superimposed on each other can be In this case some possible ideas What would it look like to use only one way borders The borders that appear are solid what if they were replaced by a dashed line dashed Maybe we could add border radiustext decoration also supports some kinds of underscores so we can try using them too OK putting the above idea into practice we can get a variety of shapes drawn with various lines They might look like this Of course the effect can be randomized every time as long as we make good use of the random parameters you can poke into the following demo to feel it CodePen Demo CSS doodle Pure CSS Patterns Clip path amp amp Drop shadowHey when it comes to creating different lines and patterns it s important to mention two other interesting properties in CSS They are clip path and fitler drop shadow Hmmm What does that mean Let s have a simple demo using Clip path we can crop out different element shapes For example to implement a simple polygon div width px height px clip path polygon background The effect is as follows Then using this idea we can try to use clip path to crop out various different shapes for overlaying In CSS doodle Shapes there are a very large number of clip path shapes built in for us to choose from We pick one at random Applying the above rules try to implement a graphic lt css doodle gt doodle grid x vmin place cell center size calc calc index background hsla calc calc index calc index calc index clip path shape fill rule evenodd split scale x cos t cos π t y sin t sin π t lt css doodle gt This time instead of rotating the different angles just giving each layer a different background base color and being able to get something like CodePen Demo CSS Doodle CSS Magic Pattern Use Clip path and Drop shadow To Create Different Lines PatternsOK the above is using clip path to create different patterns but how do you get the different lines Not so fast Using drop shadow you can create different shadows for Clip path cropped shapes but there are some structural constraints div position relative width px height px filter drop shadow px px px black amp after content position absolute width height left right background fff clip path polygon We need to apply filter drop shadow px px px black on top of the parent element of the element that utilizes clip path and the element that utilizes clip path must have background in order to attach a shadow effect to the clipped element The above code is as follows OK perfect this way we have greatly enriched our line library and by applying the above line rules a whole new wave of patterns will be created CodePen Demo CSS doodle Pure CSS Pattern clip path drop shadowOK limited to space not to expand one by one interested in the above Demo Fork a copy to try for themselves There are a lot of interesting patterns waiting to be generated Finally let s take a look at the work of CSS doodle author Yuan Chuan who used the above technique CodePen Demo css doodle art FinallyMore wonderful CSS technical articles are summarized in my Github iCSS And maybe you will love my CodePen which has a large number of amazing CSS effects Well that s all for this article I hope it helps you |
2022-07-24 03:38:08 |
海外ニュース |
Japan Times latest articles |
France knock out holders Netherlands with extra-time penalty |
https://www.japantimes.co.jp/sports/2022/07/24/soccer/euro-2022-france-netherlands/
|
France knock out holders Netherlands with extra time penaltyFrance became the fourth nation to have reached the semifinals of the Women s Euros World Cup and Olympics after Germany Norway and Sweden |
2022-07-24 12:20:24 |
ニュース |
BBC News - Home |
Neighbours: Margot Robbie to return for TV soap finale |
https://www.bbc.co.uk/news/entertainment-arts-62281761?at_medium=RSS&at_campaign=KARANGA
|
finale |
2022-07-24 03:43:21 |
ニュース |
BBC News - Home |
World Athletics Championships: GB & NI seize bronze in men's 4x100m relay |
https://www.bbc.co.uk/sport/av/athletics/62281571?at_medium=RSS&at_campaign=KARANGA
|
World Athletics Championships GB amp NI seize bronze in men x s xm relayWatch as Great Britain Northern Ireland win bronze in the men s xm relay behind the United States of America who won silver and Canada who took the gold medal at the World Athletics Championships in Oregon USA |
2022-07-24 03:43:08 |
ニュース |
BBC News - Home |
World Athletics Championships: GB miss out on 4x100m relay medal after Asher-Smith injury |
https://www.bbc.co.uk/sport/av/athletics/62281607?at_medium=RSS&at_campaign=KARANGA
|
World Athletics Championships GB miss out on xm relay medal after Asher Smith injuryWatch as Great Britain finish sixth in the women s xm relay after Dina Asher Smith suffered an injury in the third leg at the World Athletics Championships in Oregon |
2022-07-24 03:17:59 |
北海道 |
北海道新聞 |
旭大高が優勝 3年ぶり10度目 夏の高校野球北大会 |
https://www.hokkaido-np.co.jp/article/709523/
|
全国高校野球選手権大会 |
2022-07-24 12:26:33 |
北海道 |
北海道新聞 |
大谷、4打数2安打で1打点 ブレーブス戦 |
https://www.hokkaido-np.co.jp/article/709524/
|
打点 |
2022-07-24 12:01:00 |
海外TECH |
reddit |
I’ll never understand people who choose a dog over their own kid. |
https://www.reddit.com/r/BanPitBulls/comments/w6lomk/ill_never_understand_people_who_choose_a_dog_over/
|
I ll never understand people who choose a dog over their own kid submitted by u Taco ivore to r BanPitBulls link comments |
2022-07-24 03:13:48 |
コメント
コメントを投稿