olli

Jacob Collier Plays The Same Song In 18 Increasingly Complex Emotions

Jacob Collier plays and transforms a familiar tune through a variety of different emotions. Jacob takes "Londonderry Air" (more popularly known as "Danny Boy") and pulls the song through many twists and turns as he transmutes the piece on the fly. How does the song sound "angry," or "sad"? How about with more complex emotions, like "disruptive" or "betrayed"? For more Jacob Collier, visit http://www.JacobCollier.com and Jacob's musical universe ➡ https://jacobcollier.lnk.to/Follow




olli

Tech Support - Jacob Collier Answers Music Theory Questions From Twitter

Musician Jacob Collier answers the internet's burning questions about music theory. What the heck is reharmonization? What's Middle C? What do the piano pedals do? Does music theory matter? Jacob answers all these questions and much more!




olli

Tech Support - Jacob Collier Answers Instrument & Music Theory Questions From Twitter | Tech Support

Singer-songwriter and multi-instrumentalist Jacob Collier answers the internet's buzzing questions about instruments and musical theory. What is the difference between black and white piano keys? What makes up the rhythm section? What makes a bass line sound funky? Director: Justin Wolfson Director of Photography: Francis Bernal Expert: Jacob Collier Line Producer: Joseph Buscemi Associate Producer: Paul Gulyas; Brandon White Production Manager: D. Eric Martinez Production Coordinator: Fernando Davila Camera Operator: Christopher Eustache Sound Mixer: Rebecca O’Neil Production Assistant: Caleb Clark Special Thanks: Sean Lefkovitz




olli

LAC breakthrough: India, China agree on patrolling arrangements in border area

Move could help India play down anti-China sentiments, increase economic engagement, say experts




olli

Indian Army begins patrolling at Demchok but not at Depsang in Ladakh

Indian Army sources stated patrolling at Depsang is expected to resume shortly




olli

Controlling CO2 flux in a CO2-permeable membrane with a H2O driving force

J. Mater. Chem. A, 2024, 12,30821-30830
DOI: 10.1039/D4TA05021E, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Jacqueline A. Penn, Wenting Hu, Ian S. Metcalfe, Greg A. Mutch
A H2O driving force in the opposite direction to CO2 permeation exerts control over CO2 flux in a molten-salt membrane fabricated using hydroxides.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

DeMeco Ryans: No setback for Nico Collins, game-time decision to sit him Sunday night

The Texans activated wide receiver Nico Collins from injured reserve last Saturday, but he wound up being on the inactive list for their loss to the Lions on Sunday night.




olli

Revealing the effect of conductive mechanism on the voltage endurance of ferroelectric thin films via controlling the deposition temperature for reaching high energy storage capability

J. Mater. Chem. C, 2024, Advance Article
DOI: 10.1039/D4TC03879G, Communication
Hongmei Jing, Shibo Zhao, Ting Wang, Wanbiao Hu, Liming Diwu, Jingru Xu, Peiqiao Han, Miao Liu, Zhuo Wang, Zixiong Sun
By controlling the conducting mechanism of BCZT–BZT thin films, which was significantly affected by the deposition temperature, the voltage endurance was strongly enhanced, and the energy storage performance was also optimized.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

Scrolling DOM elements to the top, a Zepto plugin

There’s bunches of plugins, extensions and techniques to smoothly scroll page elements, but most of them are convoluted messes and probably do more than you need. I like “small and works well”, and it’s a good exercise for those JavaScript and DOM muscles to write a small plugin from time to time. My goal was […]




olli

Kalpathy chariots to start rolling from November 13




olli

Wayanad bypoll: 595 polling booths for over 6 lakh voters in Nilambur, Wandoor, Eranad




olli

When worlds collide (1951) / directed by Rudolph Maté [DVD].

[U.K.] : Paramount Pictures, [2002]




olli

Rithvik Bollipalli and Arjun Kadhe in quarterfinals of Shanghai Challenger

In the $25,000 ITF women’s event in Nakhon Si Thammarat, Thailand, Vaidehi Chaudhari cruised past Vaishnavi Adkar for the loss of three games in the first round




olli

Rithvik Bollipalli and Arjun Kadhe in Challenger doubles final

In the final, the Indian pair will be challenged by Blake Ellis and Adam Walton of Australia




olli

17 killed, 50 injured as trains collide in Pakistan

The incident took place when Fareed Express collided with Zakaria Express due to wrong signal given to the latter, Geo News quoted rescue sources as saying.




olli

19 killed, 50 injured as trains collide in Pakistan

Initial probe reveals the driver of one of the trains ignored the signal and rammed into a stationary train.




olli

Health versus Wealth : On the Distributional Effects of Controlling a Pandemic [electronic journal].

National Bureau of Economic Research




olli

Controlling Sellers Who Provide Advice: Regulation and Competition [electronic journal].




olli

Collider Bias in Economic History Research [electronic journal].




olli

Controlling the structural and adsorption features of polyoxovanadate-based metal–organic clusters by adjustable template effect

Inorg. Chem. Front., 2024, Advance Article
DOI: 10.1039/D4QI00254G, Research Article
Yan-Hu Wang, Ke-Wei Tong, Chao-Qin Chen, Jing Du, Guo-Ping Yang, Peng Yang
An adjustable template effect was employed to activate the evolution of polyoxovanadate-based metal–organic clusters, resulting in unprecedented structural archetypes as well as customized dye and iodine adsorption features.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

When imagination and real life collide

Nidhi Dalmia’sHarpbrings to the fore the real-life conflicts faced by people in ’60s India




olli

Foreign diplomats tour polling booths in Jammu and Kashmir  

After visiting stations in Budgam and Sringar, U.S. diplomat says poll process looks professional; Omar takes exception to Centre’s move to bring the 15-member team, terms it ‘a guided tour’



  • Jammu and Kashmir Assembly

olli

Jammu and Kashmir Assembly polls: 57% turnout in peaceful Phase 2 polling

Reasi district records highest voting percentage of 74.7 followed by Pooch at 73.8; Srinagar’s turnout exceeds Lok Sabha figure; no booth reported any incident warranting a repoll, says EC



  • Jammu and Kashmir Assembly

olli

Folklife and superstition [electronic resource] : the luck, lore, and worldviews of prairie homesteaders / Sandra Rollings-Magnusson.

Surrey, BC : Heritage House Publishing, 2024.




olli

603: Deno, React Alternatives, and Copilot Concerns with Triple Threat Josh Collinsworth

Josh (or Jsoh) stops by to talk about his work at Deno, recent blog posts on Copilot, why Svelte is awesome and React is not, Apple and PWA, and building word games on the web.




olli

Raina’s rollicking reign

A racy account about an exciting cricketer




olli

Controlling wall–particle interactions with activity

Soft Matter, 2024, 20,8395-8406
DOI: 10.1039/D4SM00634H, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Luke Neville, Jens Eggers, Tanniemola B. Liverpool
The interaction between a disk and wall in an active nematic depends on a combination of activity and anchoring, with contractile nematics repelling disks with planar anchoring.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

Rolling and ordering of micro rods in shear flow induced by rod wall interactions

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00999A, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Martin Wittmann, Igor M. Kulić, Antonio Stocco, Juliane Simmchen
We use experiments and theoretical models to investigate the rolling and translational motion of rod-shaped micro particles close to a solid wall in the presence or absence of shear flow.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

Beautiful Scrolling Experiences – Without Libraries

Michelle Barker appears as one of a heavenly host, coming forth with scroll in hand to pronounce an end to janky scrolljacking! Unto us a new specification is born, in the city of TimBL, and its name shall be called Scroll Snap.


Sponsor: Order any Standard paperback(s) and get a surprise gift card in the box for YOU. While supplies last, from your pals at A Book Apart!


One area where the web has traditionally lagged behind native platforms is the perceived “slickness” of the app experience. In part, this perception comes from the way the UI responds to user interactions – including the act of scrolling through content.

Faced with the limitations of the web platform, developers frequently reach for JavaScript libraries and frameworks to alter the experience of scrolling a web page – sometimes called “scroll-jacking” – not always a good thing if implemented without due consideration of the user experience. More libraries can also lead to page bloat, and drag down a site’s performance. But with the relatively new CSS Scroll Snap specification, we have the ability to control the scrolling behaviour of a web page (to a degree) using web standards – without resorting to heavy libraries. Let’s take a look at how.

Scroll Snap

A user can control the scroll position of a web page in a number of ways, such as using a mouse, touch gesture or arrow keys. In contrast to a linear scrolling experience, where the rate of scroll reflects the rate of the controller, the Scroll Snap specification enables a web page to snap to specific points as the user scrolls. For this, we need a fixed-height element to act as the scroll container, and the direct children of that element will determine the snap points. To demonstrate this, here is some example HTML, which consists of a <div> containing four <section> elements:

<div class="scroll-container">
  <section>
    <h2>Section 1</h2>
  </section>
  <section>
    <h2>Section 2</h2>
  </section>
  <section>
    <h2>Section 3</h2>
  </section>
  <section>
    <h2>Section 4</h2>
  </section>
</div>

Scroll snapping requires the presence of two main CSS properties: scroll-snap-type and scroll-snap-align. scroll-snap-type applies to the scroll container element, and takes two keyword values. It tells the browser:

  • The direction to snap
  • Whether snapping is mandatory

scroll-snap-align is applied to the child elements – in this case our <section>s.

We also need to set a fixed height on the scroll container, and set the relevant overflow property to scroll.

.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

section {
  height: 100vh;
  scroll-snap-align: center;
}

In the above example, I’m setting the direction in the scroll-snap-type property to y to specify vertical snapping. The second value specifies that snapping is mandatory. This means that when the user stops scrolling their scroll position will always snap to the nearest snap point. The alternative value is proximity, which determines that the user’s scroll position will be snapped only if they stop scrolling in the proximity of a snap point. (It’s down to the browser to determine what it considers to be the proximity threshold.)

If you have content of indeterminate length, which might feasibly be larger than the height of the scroll container (in this case 100vh), then using a value of mandatory can cause some content to be hidden above or below the visible area, so is not recommended. But if you know that your content will always fit within the viewport, then mandatory can produce a more consistent user experience.

See the Pen Simple scroll-snap example by Michelle Barker (@michellebarker) on CodePen.

In this example I’m setting both the scroll container and each of the sections to a height of 100vh, which affects the scroll experience of the entire web page. But scroll snapping can also be implemented on smaller components too. Setting scroll snapping on the x-axis (or inline axis) can produce something like a carousel effect.

In this demo, you can scroll horizontally scroll through the sections:

See the Pen Carousel-style scroll-snap example by Michelle Barker (@michellebarker) on CodePen.

The Intersection Observer API

By implementing the CSS above, our web page already has a more native-like feel to it. To improve upon this further we could add some scroll-based transitions and animations. We’ll need to employ a bit of Javascript for this, using the Intersection Observer API. This allows us to create an observer that watches for elements intersecting with the viewport, triggering a callback function when this occurs. It is more efficient than libraries that rely on continuously listening for scroll events.

We can create an observer that watches for each of our scroll sections coming in and out of view:

const sections = [...document.querySelectorAll('section')]

const options = {
  rootMargin: '0px',
  threshold: 0.25
}

const callback = (entries) => {
  entries.forEach((entry) => {
    if (entry.intersectionRatio >= 0.25) {
      target.classList.add("is-visible");
    } else {
      target.classList.remove("is-visible");
    }
  })
}

const observer = new IntersectionObserver(callback, options)

sections.forEach((section, index) => {
  observer.observe(section)
})

In this example, a callback function is triggered whenever one of our sections intersects the container by 25% (using the threshold option). The callback adds a class of is-visible to the section if it is at least 25% in view when the intersection occurs (which will take effect when the element is coming into view), and removes it otherwise (when the element is moving out of view). Then we can add some CSS to transition in the content for each of those sections:

section .content {
  opacity: 0:
}

section.is-visible .content {
  opacity: 1;
  transition: opacity 1000ms:
}

This demo shows it in action:

See the Pen Scrolling with Intersection Observer by Michelle Barker (@michellebarker) on CodePen.

You could, of course, implement some much more fancy transition and animation effects in CSS or JS!

As an aside, it’s worth pointing out that, in practice, we shouldn’t be setting opacity: 0 as the default without considering the experience if JavaScript fails to load. In this case, the user would see no content at all! There are different ways to handle this: We could add a .no-js class to the body (which we remove on load with JS), and set default styles on it, or we could set the initial style (before transition) with JS instead of CSS.

Position: sticky

There’s one more CSS property that I think has the potential to aid the scroll experience, and that’s the position property. Unlike position: fixed, which locks the position of an element relative to the nearest relative ancestor and doesn’t change, position: sticky is more like a temporary lock. An element with a position value of sticky will become fixed only until it reaches the threshold of its parent, at which point it resumes relative positioning.

By “sticking” some elements within scroll sections we can give the impression of them being tied to the action of scrolling between sections. It’s pretty cool that we can instruct an element to respond to it’s position within a container with CSS alone!

Browser support and fallbacks

The scroll-snap-type and scroll-snap-align properties are fairly well-supported. The former requires a prefix for Edge and IE, and older versions of Safari do not support axis values. In newer versions of Safari it works quite well. Intersection Observer similarly has a good level of support, with the exception of IE.

By wrapping our scroll-related code in a feature query we can provide a regular scrolling experience as a fallback for users of older browsers, where accessing the content is most important. Browsers that do not support scroll-snap-type with an axis value would simply scroll as normal.

@supports (scroll-snap-type: y mandatory) {
  .scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }

  section {
    height: 100vh;
    scroll-snap-align: center;
  }
}

The above code would exclude MS Edge and IE, as they don’t support axis values. If you wanted to support them you could do so using a vendor prefix, and using @supports (scroll-snap-type: mandatory) instead.

Putting it all together

This demo combines all three of the effects discussed in this article.

Summary

Spending time on scroll-based styling might seem silly or frivolous to some. But I believe it’s an important part of positioning the web as a viable alternative to native applications, keeping it open and accessible. While these new CSS features don’t offer all of the control we might expect with a fully featured JS library, they have a major advantage: simplicity and reliability. By utilising web standards where possible, we can have the best of both worlds: Slick and eye-catching sites that satisfy clients’ expectations, with the added benefit of better performance for users.


About the author

Michelle is a Lead Front End Developer at Bristol web agency Atomic Smash, author of front-end blog CSS { In Real Life }, and a Mozilla Tech Speaker. She has written articles for CSS Tricks, Smashing Magazine, and Web Designer Magazine, to name a few. She enjoys experimenting with new CSS features and helping others learn about them.

More articles by Michelle




olli

Applied structural equation modeling using AMOS [electronic resource]: basic to advanced techniques / Joel E. Collie

New York : Routledge, 2020




olli

Monsoon ball has been set rolling!

Expectations of a normal southwest monsoon for India are gaining ground




olli

Institutional investments in real estate advance 45% in July-September: Colliers

Alternate assets, which include data centres, life sciences and schools, did not receive any funding in July-September.




olli

Man, friend killed in car-bus collision after attending sister’s wedding reception




olli

Karnataka byelections: All set for polling today after weeks of high-decibel campaign

Though the results have little consequence in the number game for the government, the stakes are high for individual leaders




olli

Six injured as two cars collide head-on near Kazhakuttam




olli

Rolling out a red carpet to garden birds

They are also the friendliest and are not afraid to share space with humans




olli

Jharkhand first phase of polling LIVE updates: Voting begins for 43 seats

Former CM is contesting on a BJP ticket for the first time, while six State Cabinet Ministers are also among 683 candidates in the first phase




olli

Controlling TiO2 photocatalytic behaviour via perhydropolysilazane-derived SiO2 ultrathin shell

Nanoscale, 2024, Advance Article
DOI: 10.1039/D4NR03566F, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Darya Burak, Jae Hyun Han, Joon Soo Han, In Soo Kim, Md Abdur Rahman, Joel K. W. Yang, So-Hye Cho
PHPS was transformed via TiO2 photocatalytic properties into ultrathin SiO2 shells, passivating TiO2 activity while retaining its whiteness and high refractive index—perfect for cosmetics, paints, and optical coatings.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

Optimization of hair follicle spheroids for hair-on-a-chip

Biomater. Sci., 2024, 12,1693-1706
DOI: 10.1039/D3BM02012F, Paper
Subin Jeong, Hyeon-Min Nam, Gun Yong Sung
We report spheroids prepared by injecting LEF1 and Wnt1 into DPCs via transfection and then adding KCs and HUVECs. Through SEM, we observed a part extending outward from the TK and TKH surfaces, as indicated by white arrows.
The content of this RSS Feed (c) The Royal Society of Chemistry




olli

The ancient history of the Egyptians, Carthaginians, Assyrians, Babylonians. Medes and Persians, Macedonians, and Grecians. / by Mr Rollin, Sometime Principal of the University of Paris, afterwards Professor of Eloquence in the Royal College, and Member o

Edinburgh : Printed for Hamilton and Balfour, Kincaid and Donaldson, and W. Gray., MDCCLVIII. [1758]




olli

Stage Set For First Phase Of Polling In Jharkhand, Bypolls In Wayanad And 33 Assembly Seats

Priyanka Gandhi is contesting against Left Democratic Front (LDF) candidate Satyan Mokeri and BJP's Navya Haridas in the by-polls. 




olli

One killed, two injured in bike-truck collision near Sedapatti




olli

Controlling CAR-T: How scientists plan to make the engineered T cell therapy safer, and work for more cancers

CAR T-cell therapy works wonders for some cancer patients. For others, it is a death sentence. To make the revolutionary therapy work for more people, scientists must devise better ways to control it




olli

The good times keep rolling in pharmaceutical chemicals

Exhibitors at CPhI North America report another year of record growth and investment




olli

EPA gears up for controlling poly- and perfluorochemical pollution

Agency plans legal limit on four PFASs in drinking water, creating liability for PFOS and PFOA contamination




olli

Calculations suggest flea and tick medications for pets could benefit people by controlling mosquitoes

These drugs could have beneficial population-wide effects in areas at risk for malaria and Zika, according to modeling study




olli

2 killed, 64 hurt as 2 MSRTC buses collide on Pune-Solapur highway




olli

Maharashtra Poll vault: Bhujbal rakes up rolling pins…




olli

‘America seems to have overlooked Trump’s personal follies in favour of his America first campaign’