There are many scenes and images in “Coraline” that are likely to scare children. This is not a warning but rather a recommendation, since the cultivation of fright can be one of the great pleasures of youthful moviegoing. As long as it doesn’t go too far toward violence or mortal dread, a film that elicits a tingle of unease or a tremor of spookiness can be a tonic to sensibilities dulled by wholesome, anodyne, school-approved entertainments.

Books, these days, often do a better job than movies of parceling out juvenile terror. There is plenty of grisly screen horror out there for teenagers, of course, but younger children are more amply served by fiction from the likes of R. L. Stine, Roald Dahl and Neil Gaiman, on whose fast-moving, suspenseful novel “Coraline” is based. The film, an exquisitely realized 3-D stop-motion animated feature directed and written by Henry Selick (“The Nightmare Before Christmas,” “James and the Giant Peach”) has a slower pace and a more contemplative tone than the novel. It is certainly exciting, but rather than race through ever noisier set pieces toward a hectic climax in the manner of so much animation aimed at kids, “Coraline” lingers in an atmosphere that is creepy, wonderfully strange and full of feeling.

Its look and mood may remind adult viewers at various times of the dreamscapes of Tim Burton (with whom Mr. Selick worked on “Nightmare”), Guillermo del Toro and David Lynch. Like those filmmakers Mr. Selick is interested in childhood not as a condition of sentimentalized, passive innocence but rather as an active, seething state of receptivity in which consciousness itself is a site of wondrous, at times unbearable drama.

The governing emotion, at the beginning, is loneliness. A smart, brave girl named Coraline Jones, voiced by Dakota Fanning, has recently moved from Michigan to an apartment in a big pink Victorian house somewhere in Oregon. She is at an age when the inadequacy of her parents starts to become apparent, and Coraline’s stressed-out, self-absorbed mom and dad (Teri Hatcher and John Hodgman), who write about gardening, barely look up from their computer screens when she’s in the room. And so, like many a children’s book heroine before her, Coraline sets out to explore her curious surroundings, interweaving the odd details of everyday reality with the bright threads of imagination. She is accompanied from time to time by a local boy (Robert Bailey Jr.) and a talking cat (Keith David).